Help in adding link in field message

Pihu1
Tera Contributor

Hi Community,

Need help in adding a link in field message ?when user clicks on it, it should point to new window.

Thanks,

Pihu

11 REPLIES 11

Field messages don't support HTML, you can do it on form info message if that works for you

Something like

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

-Anurag

Thanks Anurag it worked by using addInfoMessage.

But can we do it from the below link.

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

Thanks,

Pihu

 

That is an unaswered Question , and if you see Mile Allen's reply there. he also said the same.

-Anurag

You using it in business then it should be gs.addInfoMessage() & not g_form.showFieldMessage()

So, last line becomes

gs.addInfoMessage(message);

No ,I am not using in BR I have used in client script