Link in 'show field message'

Hema12
Tera Contributor

Hi,

How to include a link in showFieldmessage in client script ?

TIA

2 REPLIES 2

AbhishekGardade
Giga Sage

Hello Hema

Looks like show field messages don't support HTML. You could request that as an enhancement. I think it should be built-in. As a workaround, you could add a message at the top of the form that does accept HTML like this...

g_form.addInfoMessage(info);

Refer this:

https://community.servicenow.com/community?id=community_question&sys_id=da3dc7a9db9cdbc01dcaf3231f96...

Please mark as Correct Answer and Helpful, if applicable.
Thank You!
Abhishek Gardade

Thank you,
Abhishek Gardade

Service_RNow
Mega Sage

Hi Hema,

you can use this code:

g_form.addInfoMessage("Please <a href = '/incident_list.do'>Click</a>");

After going throw this Mark it Correct/helpful, if this helps you
Thank you