2

When in an unformatted sharepoint list you can hover over a person's name to get more information about them, I believe this is called their persona card. How can I keep this functionality having formatted my list with JSON?

For the example below I want each of the people's names from the field PastMembers to have that hover action when displayed.

{
  "elmType": "div",
  "forEach": "person in [$PastMembers]",
  "children": [
    {
      "elmType": "div",
      "txtContent": "[$person.title]"
    }
  ]
}
2
  • Are you using column formatting or view formatting? If you are already using any json code then please add it to your question. Also, I think it is not possible to add persona card on hover using JSON formatting. Mar 27, 2020 at 2:55
  • @GaneshSanap I have updated the question
    – Wicket_IV
    Mar 27, 2020 at 16:40

2 Answers 2

4

Use the defaultHoverField property in JSON as described here:

Use column formatting to customize SharePoint

1
  • Yes thank you! It wasn't around when I first asked the question but is perfect.
    – Wicket_IV
    Apr 28, 2020 at 21:04
0

If you are using JSON formatting on you list field, Commonly the code will make the person name be displayed as simple text string instead of a special link in people picker field. I am not sure if there are possible options to keep it as a link which will show the profile card.

1
  • 1
    Yeah this is what I mean - the persons name is just a string but I want it to have that special link
    – Wicket_IV
    Mar 27, 2020 at 16:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.