order guide

rajaditya06
Tera Contributor

Hi,

I have created order guide with 3 catalog items. Based on "Rule Base" Catalog items are shown in order guide.
We have choice field in one of the catalog item and we want to remove few choices from the catalog item in order guide without affecting the original catalog item.

1 REPLY 1

Ashish1116
Tera Contributor

To remove choices from a catalog item field only in an Order Guide, create a Catalog Client Script (onLoad) in the Order Guide context:

if (g_form.getParameter('sysparm_guide') != '') {
g_form.removeOption('field_name', 'value1');
g_form.removeOption('field_name', 'value2');
}

This hides the choices only in the Order Guide without affecting the original catalog item.