I've used the multi line text column in SharePoint, where I want the fields to be clickable.
and I used the following JSON:
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
"elmType": "a",
"txtContent": "=if(@currentField=='','','Click Here')",
"attributes": {
"target": "_blank",
"href": "=@currentField"
}
}
but I received the following error when I click on the link:
Sorry, something went wrong An unexpected error has occurred. TECHNICAL DETAILS GO BACK TO SITE
and this the link:
https://universityoftripoli.sharepoint.com/sites/RC1/Lists/20201/%3Cdiv%20class=%22ExternalClass845D4BA456454283A4484A971DA3DE91%22%3Ehttps://universityoftripoli-my.sharepoint.com/personal/rcc_uot_edu_ly/Documents/Apps/Microsoft%20Forms/%D9%85%D8%B9%D8%A7%D9%8A%D9%8A%D8%B1%20%D8%A7%D9%84%D8%AA%D8%B5%D9%86%D9%8A%D9%81%20%D8%A7%D9%84%D8%A8%D9%8F%D8%B9%D8%AF%20%D8%A7%D9%84%D8%AF%D9%88%D9%84%D9%8A%20(Copy)%203/Question/%D8%AF.%D8%B9%D8%B2%D9%8A%D8%B2%D8%A9_AHLAM%20ELKHESHEBI.pdf%3C/div%3E
and my original link is:
https://universityoftripoli-my.sharepoint.com/personal/rcc_uot_edu_ly/Documents/Apps/Microsoft%20Forms/%D9%85%D8%B9%D8%A7%D9%8A%D9%8A%D8%B1%20%D8%A7%D9%84%D8%AA%D8%B5%D9%86%D9%8A%D9%81%20%D8%A7%D9%84%D8%A8%D9%8F%D8%B9%D8%AF%20%D8%A7%D9%84%D8%AF%D9%88%D9%84%D9%8A%20(Copy)%203/Question/%D8%AF.%D8%B9%D8%B2%D9%8A%D8%B2%D8%A9_AHLAM%20ELKHESHEBI.pdf
This is a print screen of the Inspect Element