Service portal Auto expand Order guide's Include Items on Choose option tab

kavyashree1
Tera Contributor

Hi Team,

We have upgraded to London. As per London version, Service portal Order guide widget collapse/minimizes the Include Items by default on choose option. But we need to make the Include items expand by default.

find_real_file.png

Is there any possibility of updating service now order guide widget to expand Include Items by default. We have already cloned the OOB widget and trying to update.

 

 

1 ACCEPTED SOLUTION

Don Pfister1
Kilo Expert

I disliked the collapsed items as well.  It took a good chunk of time to figure this out.  My Angular is a bit rusty 🙂

Make a clone of the SC Order Guide widget to work on.  Edit that clone and in the HTML template section, you need to make 2 changes.

Search for " <uib-accordion close-others="true">" and change the value to false.  This will allow more than one accordion item to be open at a time.

In the line directly below that:

<uib-accordion-group class="accordion-header b" template-url="group-template.html" ng-init="initAttachmentCallbacks($index);" ng-repeat="item in includedItems track by item.sys_id | orderBy: 'order'" id="{{::item.sys_id}}" is-open="item.isOpen">

change the last value to true so the whole line reads:

<uib-accordion-group class="accordion-header b" template-url="group-template.html" ng-init="initAttachmentCallbacks($index);" ng-repeat="item in includedItems track by item.sys_id | orderBy: 'order'" id="{{::item.sys_id}}" is-open="true">

 

Hope this helps

Don

View solution in original post

5 REPLIES 5

There is a page called sc_cat_item_guide

 

replicate that, and use that one! replacing the OOB widget for your new one