Forum Discussion
Need to be able to click on SharePoint list column to open form
- Nov 06, 2020
Rick Brock You can use below JSON to open the default form on click of person name:
{ "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json", "elmType": "button", "txtContent": "@currentField.title", "customRowAction": { "action": "defaultClick" }, "style": { "border": "none", "background-color": "inherit" } }Reference: button elements
Note: Using this JSON, you will loss the default hover action of person or group field (where you can see user details). Maybe adding some more JSON code you can achieve hover also. check above link for more information on column formatting.
Please click Mark as Best Response if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
ganeshsanap Thank, you! This is exactly what I was needing. As you state, it does get rid of the default hover action :(. I'll see if I can find a way to combine the code.
Thanks for your quick reply and the information you provided!
Rick Brock You are welcome.
Check below JSON sample for you reference to show hover card on person or group field:
Please like my responses if it helped you to solve your issue.