Order Guide options slider default to false

nick135
Tera Expert

I have an order Guide with several catalog items in it. I would like for the customer to turn on each item that they want. Rather than each item be mandatory from the start. how can I make the options slider bar default to false on Order Guide's?

 

find_real_file.png

1 ACCEPTED SOLUTION

Sagar Pagar
Tera Patron

You need to modify the "SC order Guide" widgets in service portal.

For this

1) You need to clone this widget and rename it.

2) Update the server side script

3) update it.

find_real_file.png

item.included = false;  // it will hide it for all order guides

 

If you want to set default False for specific item then you need to specify the sys_id.

if (item.sys_id=="catalog_item_sys_id") { //sys_id of item for which you have to disable toogle button
item.included = false;
gs.log("Hiding the toogle button for: " + item.sys_id);
}else {
item.included = true;
}

 

Thanks!

Sagar Pagar

The world works with ServiceNow

View solution in original post

1 REPLY 1

Sagar Pagar
Tera Patron

You need to modify the "SC order Guide" widgets in service portal.

For this

1) You need to clone this widget and rename it.

2) Update the server side script

3) update it.

find_real_file.png

item.included = false;  // it will hide it for all order guides

 

If you want to set default False for specific item then you need to specify the sys_id.

if (item.sys_id=="catalog_item_sys_id") { //sys_id of item for which you have to disable toogle button
item.included = false;
gs.log("Hiding the toogle button for: " + item.sys_id);
}else {
item.included = true;
}

 

Thanks!

Sagar Pagar

The world works with ServiceNow