I'm trying to set up custom JSON formatting with an image that is clickable to follow a link. I can display the image OK (using "elmType": "img"), and I can set up text that links OK (using "elmType": "a"), but I can't seem to combine the two.
The following code I think shows my intent, but does not create the link, rather it only displays the image:
{
"elmType": "img",
"style": {
"display": "block",
"background-color": "#abeccd",
"position": "relative",
"width": "225px",
"height": "225px"
},
"attributes": {
"src": "[$ImageLink]",
"target": "_blank",
"href": "http://www.google.co.uk"
}
}
