Is it possible to add collapsible sections (accordians) to Knowledge Articles in SN?

Mike Hussey
Tera Contributor

I have tried adding HTML for accordians and they do not seem to work in ServiceNow. We have large training documents and would like to break them into sections that the user can click and expand.

9 REPLIES 9

jaimehonaker
ServiceNow Employee
ServiceNow Employee

There's not a button on TinyMCE, but we have had a few articles in the past, where authors have added the click/expand links. You have to build it into the html via the <> button. I always go to w3schools to figure out what code I need to add. 

We do the same thing as Jamie. Anytime something isn't available as an Out of the Box option, we just edit the TinyMCE (html) editor with the code and it will usually say. If it doesnt stay you may want to check if you have the HTML sanitizer feature on. We had to turn that off. 

https://docs.servicenow.com/bundle/quebec-servicenow-platform/page/administer/security/concept/c_HTM...

It would be great to be able to do this without needing to edit the html because not all knowledge authors and owners in my organisation are proficient in html. Also, if (as a knowledge manager) I improve an article by adding sections, the knowledge owner often finds those articles difficult to maintain and review because they don't know how to add another section. 

You do have to be super careful to consider accessibility though (see https://adrianroselli.com/2019/04/details-summary-are-not-insert-control-here.html).