Need help with formatting options available in ServiceNow

Garima26
Tera Contributor

We are working on making support agents articles more convenient to read. At present, they are very long articles. Can someone guide me on how the content can be made more compact. One of the examples I saw on internet is as shown below, however I'm unable to find any option in the tool bar. 

Garima26_0-1679561572961.png

 

13 REPLIES 13

Eoghan Sinnott
Kilo Sage
Kilo Sage

Hi, 

 

I don't believe there are any out of the box options to have this available in the toolbar, however it can be easily added using the HTML editor. I found this article very helpful and detailed and allowed us to add the expand/collapse function to our articles.

https://www.servicenow.com/community/in-other-news/add-expand-and-collapse-functionality-to-any-know...

Lauren Methena
Giga Guru

Good morning! We've solved that problem (long articles that have a lot of info) in three ways.

 

1. Organize your content into sections. Create a table of contents at the top listing the sections. Then, create anchor tags to link from the table of contents down to each section. That way, readers can click on a link and jump down to the section they want to read about. (ServiceNow content wiki has an anchor tag tool now, which is great, but it's also easy to look up how to do the HTML coding for those.)

 

2. You can code collapsible drawers into your content. Like this - sample code:

<details>
<summary>Click this text to expand</summary>
<p>And then here is more info. This way, people can scan the headers and then open up the content they need. Easier on the eyes if you want them to scan the page. A little more coding but it's not too hard.</p>
</details>
<p>&nbsp;</p>

You can do knowledge blocks, tables, whatever you like. And it will open and close as people click on it. (You can search this one, too, and find examples. It's a fun tool!)

 

3. Attachments! If you have a lot of sections OR just a lot of supplementary material, make them into PDFs and then attach them to the article. BUT, I recommend not clicking on "Display attachments" in the knowledge article form. Instead, just link to each attachment using the link tool. (AND, if you have document viewing turned on at the admin level, you can add "&view=true" after the sys_id of your attachment in the HTML code, and  it will pop up and be viewable in a browser tab.) This is great especially when we have a long article and then we have FAQs. We'll just say something like Additional resources: Read the FAQs. And then people can click if they want more info.

 

And of course, you can't under estimate the power of good formatting and using your headers/subheads correctly. 🙂 

 

If you find this helpful, please mark it as so. And reply if you have any questions. Happy to chat!

Thank you @Lauren Methena for the great tip about collapsible drawers. It's a cool trick. im going to find ways to implement this element. I'm so happy that I stumbled across this group.

that's so amazing. i use the same structure in my internal/public articles. start with a table of content and link to each section below. for longer articles i usually add an anchor at the bottom to the top so users dont have to scroll up again. 

 

with regards to organization. i use a light grey line to help show where sections start and end.

Hi again Lauren,

Thank you for your input, truly great! I have a question regarding creating anchor tags - how do you do that in the editor in SN? 👩🏻