How to set the toggle button to not include items by default when the form loads on "choose options" tab in SC order Guide Widget

Arsh2
Tera Guru

Hi Community,

 

How to set the toggle button to not include items by default when the form loads on "choose options" tab in SC order Guide Widget?

 Currently it's includes all the items by default by turning on the toggle button to right. 

Could you please advise how to achieve this? I want users to select the options what they require by turning on the toggle button.

find_real_file.png

Thanks,

Arsh

1 ACCEPTED SOLUTION

Arsh2
Tera Guru

Hi Stephen,

 

Thanks for your reply. I found the solution for my requirement.

 

All you have to do is to set the value to "False" in server script of the widget.

 

item.included = true;

 

This will enable the items to "NOT INCLUDE" by default.

 

Cheers,

Arsh

 

View solution in original post

13 REPLIES 13

Stephen Sturde
Tera Guru

Hi Arsh -

Order Guides include Catalog Items when conditions are met in their configured rule-base. If a condition is met, then it is included and the toggle is available to remove it from the order if it isn't actually wanted by the user. If you don't want specific items showing up, then the rule base conditions need to be modified. 

How to add a rule to Order Guide - https://docs.servicenow.com/bundle/london-it-service-management/page/product/service-catalog-manage...

 

Order Guide Form "Rule Base" related list

find_real_file.png

Rule Base form with conditions

find_real_file.png

If you don't want the toggle at all, you can remove it by changing this value to false

find_real_file.png

Please mark correct and/or click helpful if this answered your question

-Stephen

Arsh2
Tera Guru

Hi Stephen,

 

Thanks for your reply. I found the solution for my requirement.

 

All you have to do is to set the value to "False" in server script of the widget.

 

item.included = true;

 

This will enable the items to "NOT INCLUDE" by default.

 

Cheers,

Arsh

 

I'm glad you were able to find the right solution. Thanx for sharing the end result!

-Stephen

Simran9
Tera Contributor

Hi arsh, can you please give us the name of this script? thanks!