Inserting html into a knowledge base article.

jessestjohn
Kilo Explorer

I'm new to service now, and I would like to have video's embedded into a knowledge base and played via html5. I was able to write my own html in the html editor, and it worked fine, but people who don't know html will be uploading video's as well, so I would like to have a button that prompts them for a file path, height and width of a video and injects the html into the html editor for them. Any ideas?

2 REPLIES 2

bbarber9
Giga Expert

Your best option would be to use a UI action or maybe a UI Macro. You will have to use some Javascript to edit the contents of the field and insert the HTML. You can use g_form.getValue() and g_form.setValue() to change the values of the HTML field.


carolina2
ServiceNow Employee
ServiceNow Employee

From Jakarta you can Embed videos in HTML fields, see doc below.



Embed videos in HTML fields