Forum Discussion
Holland1970
Jan 19, 2024Copper Contributor
Add hyperlink to external site to gallery view card
I am trying to edit a SharePoint list gallery view card JSON so that the hyperlink column appears as a working link on the card. I can get the link to appear, but it only opens the card. Below is my ...
ganeshsanap
Jan 22, 2024MVP
This issue is because of the div element with defaultClick action and sp-card-defaultClickButton class. So, you will have to remove the related div element from your JSON format.
Check these threads for more information/examples:
- JSON formatting SharePoint list link inside gallery
- Make a value clickable in an SPO List Gallery View
Also, make sure you are using correct internal name of your hyperlink column in the JSON. You can get the internal name of your SharePoint list columns by following this article: How to find the Internal name of columns in SharePoint Online?
Additional Read: Check this article for using external images in the SharePoint JSON formatting: SharePoint Online: External Image URLs not working in JSON Formatting
Please click Mark as Best Response & Like 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.