Forum Discussion
Hyperlink/Picture Column suddenly breaks external images in Gallery/Card Designer
- May 12, 2023
Andrew Stitt Microsoft updated something in backend which affects external images referred in SharePoint JSON formatting.
When you refer external images in JSON formatting, src in img element is changed to data-untrusted-src automatically, like:
You can fix this issue by adding external site domain from which you are using images in HTML Field Security settings, detailed steps given at: SharePoint Online: External Image URLs not working in JSON Formatting
I just tested this and it worked for me:
Also, it is possible to add/update SharePoint image columns using Power automate:
- Add an image to SharePoint Image columns using Power Automate
- Update image in SharePoint/Microsoft Lists Image columns using Power Automate
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.
Andrew Stitt Microsoft updated something in backend which affects external images referred in SharePoint JSON formatting.
When you refer external images in JSON formatting, src in img element is changed to data-untrusted-src automatically, like:
You can fix this issue by adding external site domain from which you are using images in HTML Field Security settings, detailed steps given at: SharePoint Online: External Image URLs not working in JSON Formatting
I just tested this and it worked for me:
Also, it is possible to add/update SharePoint image columns using Power automate:
- Add an image to SharePoint Image columns using Power Automate
- Update image in SharePoint/Microsoft Lists Image columns using Power Automate
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.
- Andrew StittMay 12, 2023Copper Contributorganeshsanap The backend change was indeed the cause. I added our vendor's domain to the list of "Allow iframes from this domain" in the HTML Field Security settings and that resolved the issue.
Thanks for your assistance and the tip on updating the Image column with Power Automate!