Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to give KB article link in client script?

lucky24
Tera Contributor

Hi Team,

I have to add kb article link in info-message I tried with below code but this is not working.

And I have to flash infomessage 3 time?

lucky24_1-1691400430937.png

Please can someone help me here??

Thanks

 

 

2 REPLIES 2

SANDEEP28
Mega Sage

@lucky24 Refer below community link.

 

https://www.servicenow.com/community/developer-forum/hyperlink-in-on-change-client-script/m-p/144294...

 

Try to add all the html tags in parameter part itself of g_form.addInfoMessage() method. Don't create separate variable. I tried it and it is working.

 

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

 

If I could help you with your Query then, please hit the Thumb Icon and mark as Correct !!

SANDEEP28
Mega Sage

@lucky24 If I could help you with your Query then, please hit the Thumb Icon and mark as Correct !!