Hide cascaded variables

You can hide the duplicated variables on the Choose Options screens to keep your screen clean.

When cascading variables, you may want to hide the duplicated variables on the Choose Options screens, making these screens simpler.

To hide duplicate variables on all screens after the initial Describe Needs screen in the Service Catalog Platform UI, run an onLoad catalog client script.

For example,

functiononLoad(){varitem= $("current_item");var guide = $("sysparm_guide");if(item!=null&& guide !=null&&item.value== guide.value)return;
    g_form.setDisplay('YOUR_VARIABLE_NAME',false);}

To hide duplicate variables on all screens after the initial Describe Needs screen in Service Portal, use the isOrderGuide() API.

For example,

if(g_service_catalog.isOrderGuide())
       g_form.setDisplay(‘variable_name’, false);