In my last question SharePoint online problem with HTML link in the column, Ganesh Sanap
figure out how put attachment to new column with JSON format to make them open without download needs.
My first question is, if is possible make that URL shorter in the JSON format:
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
"elmType": "div",
"style": {
"display": "flex",
"flex-direction": "column",
"align-items": "flex-start",
"padding": "11px 0",
"min-height": "0"
},
"children": [
{
"elmType": "a",
"forEach": "item in split(@currentField,'|')",
"attributes": {
"href": "[$item]",
"target": "_blank"
},
"txtContent": "[$item]"
}
]
}
for example change https://company.sharepoint.com/list/1.pdf to 1.pdf with working hyperlink.
second question is, how show this collumn in Customize Form in PowerApp to make it visible with hyperlink.
When i put in Form Source and Add DataCard I see the links but only as text. HyperLink not working.
Many thanks for any advice.
