How to change the Service Portal Order guide widget options

Jar
Tera Expert

Hi All,

We have an issue where we're using a depreciated SC Order Guide widget which does not include the attachment option. We have a newer version of this widget that not only includes the attachment option but also seems to break up the order guide into stages. We need to have this attachment option but there are some things we don't want with this new widget.

My question if anyone knows is:

1. Is it possible to remove the "Options" button?

2. Is it possible to have the form open by default?

 

find_real_file.png

1 ACCEPTED SOLUTION

Narendra Kota
Mega Sage

You can try with below approach.

 

1) In the order guide widget HTML script, comment the code showIncludeToggle in div tag, somewhere between 77 to 86.

find_real_file.png

 

2) 

a) replace  <uib-accordion close-others="true"> with <uib-accordion close-others="false"> in line 59.

b) replace  <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="" is-open="item.isOpen"> with <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="" is-open="true">  In line 60.

 

After making the above changes, Order guide looks like

 

find_real_file.png 

Hope this helps.
Mark helpful or correct based on impact.

Thanks.

View solution in original post

2 REPLIES 2

Narendra Kota
Mega Sage

You can try with below approach.

 

1) In the order guide widget HTML script, comment the code showIncludeToggle in div tag, somewhere between 77 to 86.

find_real_file.png

 

2) 

a) replace  <uib-accordion close-others="true"> with <uib-accordion close-others="false"> in line 59.

b) replace  <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="" is-open="item.isOpen"> with <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="" is-open="true">  In line 60.

 

After making the above changes, Order guide looks like

 

find_real_file.png 

Hope this helps.
Mark helpful or correct based on impact.

Thanks.

Jar
Tera Expert

Hi Narendra,

Thanks for your quick reply. This helps a lot.

 

Best Regards