How do I make collapsible sections that agents can still ctrl + F to find content?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-29-2019 09:29 AM
Hello everyone,
I would like to start off by saying that I am not a developer. I am a business operations coordinator who just happens to like to explore technology & try to figure out how to solve issues. I have figured out some html that has allowed me to figure out how to create intralinks (anchors, etc) & even create bootstrap accordions.
However, I have come across one huge issue that is a show stopper when it comes to using the bootstrap accordions that I was able to create - our HR Agents aren't able to use ctrl + F on their keyboards to display any keywords that appear throughout the article. I know that ServiceNow is still able to find these terms in the general knowledgebase search. However, this doesn't help our Agents who get into the article and can't search the keyword within that article.
I heard that maybe css or javascript could help with this. Maybe there is a way to create collapsible sections that aren't considered bootstrap accordions. However, I don't know how to incorporate any of this. This is an example of the html that I have used to create the bootstrap accordion:
<div data-collapse="accordion persist">
<div id="accordion2" class="accordion">
<div class="accordion-group">
<div class="accordion-heading"><span style="color: #008080;"><strong><span style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"><a class="accordion-toggle" style="color: #008080;" href="#collapseOne" data-toggle="collapse" data-parent="#accordion2"> PT Non-Exempt Chart (Click here)</a></span></strong></span></div>
<div id="collapseOne" class="accordion-body collapse">
<div class="accordion-inner">
Table would appear here - cannot show since it is private information.
<p> </p>
</div>
</div>
</div>
This functions in ServiceNow without an issue - there's just that showstopper of not being able to ctrl +F to find keywords throughout the article. If anyone has alternative ways to resolve this issue, that would be amazing. As a reminder, I am not a developer, so I'm not entirely sure how to incorporate any javascript or css into html. If you could literally provide me with the exact coding that I could enter into the Source Code section of my knowledgebase, that would be great! Also, I don't have administrative rights in ServiceNow, so I would want to add this to every article - not make any changes to the actual program.
Thank you for your help in advance!
- Labels:
-
Best Practices
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-19-2020 11:23 PM
I know it's been a year since this post, but I have the same question and am in the situation. Any answers? Solutions?