Service Portal: How to expand first item in Order Guide accordion?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2024 06:55 AM
In the order guide I would like to expand only the first item.
If I follow this guide I am able to get the last item to be expanded automatically:
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0821168
Thanks to this line in the widget html-code:
<uib-accordion id="id-accordion" close-others="true">
But I would like to change the code to iterate through the items in reverse order to get the first item to be the one that is expanded by default.
Or have all items closed by default and open the first item by css, like identifying the first-child of the items... somehow.
Has anyone had this requirement and already got a solution for this?
0 REPLIES 0