- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2022 04:46 AM
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?
Solved! Go to Solution.
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2022 05:10 AM
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.
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2022 05:10 AM
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.
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