From the contributor
How to use this sample
Summary
If you click on an image in a SharePoint list, the image is displayed as a preview. This formatter changes the standard behavior in which a link from another column is used. In this way, a click on the image has the same behavior as if the link had been clicked directly.

View requirements
- A column of type image containing this column formatter
- A hyperlink column (Internal Name: Link) that contains the target link.
Sample
| Solution | Author(s) |
|---|---|
| image-hyperlink.json | Hagen Deike (@samurai@sueden.social) |
Version history
| Version | Date | Comments |
|---|---|---|
| 1.0 | November 21, 2024 | Initial release |
| 1.1 | November 21, 2024 | Using columns link description instead of title |
Disclaimer
THIS CODE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
Additional notes
- Change the Image size on line 21
- To remove rounded corners, remove the image style on line 24-26
- Padding between the rows can be tweaked on line 6 & 7
- Choose how the link opens in the browser on line 14. "_blank" for new window/tab, or "_self" for the same window.