Forum Discussion
grant_jenkins
Aug 10, 2024Iron Contributor
List Form Formatting - can't get title and hyperlink from Hyperlink column
I have a Hyperlink column and trying to display it within the footer of the List Form using JSON formatting. However, I can't seem to split the Title and URL of the Hyperlink value. If I just try...
- Aug 11, 2024
Hi grant_jenkins, You are right; the Hyperlink column value behaves differently in column formatting compared to form formatting.
Fortunately, you can use the following function to retrieve Hyperlink column information in form (header or footer) formatting:
- Url
"txtContent": "=substring('[$FieldName]',0,indexOf('[$FieldName]', ','))"and title
"txtContent": "=substring('[$FieldName]',indexOf('[$LinkTest]', ',')+2,indexOf([$FieldName] + '^', '^'))"
michalkornet
Aug 11, 2024Iron Contributor
Hi grant_jenkins, You are right; the Hyperlink column value behaves differently in column formatting compared to form formatting.
Fortunately, you can use the following function to retrieve Hyperlink column information in form (header or footer) formatting:
- Url
"txtContent": "=substring('[$FieldName]',0,indexOf('[$FieldName]', ','))"
and title
"txtContent": "=substring('[$FieldName]',indexOf('[$LinkTest]', ',')+2,indexOf([$FieldName] + '^', '^'))"
grant_jenkins
Aug 24, 2024Iron Contributor
Hi Michal,
Thanks for your confirmation. I've already set them up using the configuration you mentioned above. Hoping Microsoft will fix some of these issues so things work as expected across lists, forms, etc.
Thanks for your confirmation. I've already set them up using the configuration you mentioned above. Hoping Microsoft will fix some of these issues so things work as expected across lists, forms, etc.