Service Portal: How to expand first item in Order Guide accordion?

sanna3
Tera Contributor

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