How to add the url in showFieldmsg method

manju12
Tera Expert

Hi,

 

How to add the link in this showFieldmsg() method  -> showFieldmsg('field name', 'string', 'Info/error').

 

Please let me know how to add the link like if I click on link then it will redirect to another page.

 

Thanks,

Manju

2 REPLIES 2

Yashsvi
Kilo Sage

Hi @manju12,

please check below link:

https://www.servicenow.com/community/developer-forum/can-we-add-url-in-showfieldmessage/m-p/1609067

Thank you, please make helpful if you accept the solution.

Ayushi12
Mega Sage

Hi @manju12 

You can create the variable with the type "Rich Text Label" and configure your message with a HTML link.The visibility can be controlled using UI policy or you can show url message using addInfoMessage.

If my response proves useful, please indicate its helpfulness by selecting "Accept as Solution" and " Helpful."

Thanks!