I am using Sharepoint list JSON view-formatting and want a list of names to each show their live persona card on hover. I can get this to work for just one name, but when I use forEach I cannot get the hover action to work. Is this a bug/not yet possible or am I doing something wrong?
{
"schema": "https://developer.microsoft.com/json-schemas/sp/view-formatting.schema.json",
"hideSelection": true,
"hideListHeader": true,
"rowFormatter": {
"elmType": "div",
"style": {
"float": "left",
"flex-direction": "column",
"width": "320px",
"margin-right": "15px",
"margin-bottom": "15px",
"border-style": "solid"
},
"children": [
{
"elmType": "div",
"forEach": "person in [$an6t]",
"children": [
{
"elmType": "a",
"txtContent": "[$person.title]",
"defaultHoverField": "[$person]",
"style": {
"cursor": "pointer",
"box-sizing": "border-box",
"color": "black",
"text-decoration": "none"
}
}
]
}
]
}
}