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 add javascript in Knowledge articles(article body)

Rajasekhar Meka
Kilo Contributor

Hi,

 

I am trying to use the trial version of Orlando, to provide integration of directly publishing articles to Knowledge management from my product. I am trying to add javascript in Article body(i have changed the field type from Translated_html to HTML, as suggested in one of your articles) but when I try to add it from UI, in the article body, the code editor is stripping off the script tags inside the body content.

Is it possible to add javascript inside a knowledge article body? If so, do I have to enable any settings?

please suggest me in the appropriate direction for enabling this option.

 

Thanks,

Rajasekhar

5 REPLIES 5

Rajasekhar Meka
Kilo Contributor

I have tried removing the function name and directly adding the alert statement as well.