To display an URL from the string field in a table as a clickable link

Sripriya2
Kilo Contributor

I want to provide the URL which is from the string field of a table on the portal as clickable link. I want to get the url from the table and set that url on this name 'link' and make that link clickable by the user on the portal like the above one on the picture. But for now I can only display the whole url. Screenshot 2022-11-15 155621.png

 

1 REPLY 1

Theo BOULANGER
Giga Guru

Hello @Sripriya2 ,

1-

You can change the field type to link

2-

Create a new URL field, add it to your form, Personalize Dictionary on that field, check the "Calculated" checkbox, and put the following in the "Calculation" field:

javascript:"yourlink=" + current.getLink(true)

 

Saw it there : https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0759336

 

Regards,

Theo