I have a Sharepoint list that has a column filled with URLs (which point to images stored elsewhere on the Sharepoint site).
The column settings and JSON are shown in the below image:
When I fill in the field for the list items, the URL creates itself as a hyperlink - with the "Enter a url" AND "Enter display text" fields BOTH populated with the link:
If I delete the text out of the "Enter display text" field, the picture displays as expected in the list. Is there a way that I can modify the JSON to remove the need to delete the URL text? I have hundres of items in the list, so doing this deleting for all fields would not be realistic.
Thank you
Here is my JSON
{
"elmType": "img",
"txtContent": "",
"style": {
"width": "100px"
},
"attributes": {
"src": {
"operator": "+",
"operands": [
"@currentField",
"@currentField.desc"
]
}
}
}