UI Policy and Order Guides

Beth Clingenpee
Giga Guru

Can a UI policy be set on an order guide to control the visibility of variables on an item included in the rule base? Or can a UI policy be set on an item with condition "if used as part of an order guide, do xyz, if not part of order guide, do abc"?

 

 

1 ACCEPTED SOLUTION

pavani_paluri
Giga Guru

Hi @Beth Clingenpee ,

 

No, an Order Guide’s UI Policy cannot control variables on the included items.

UI Policies are scoped to the record (or item) they're created on. An Order Guide can only control variables on itself, not on items it includes.
You can also use the same logic in Catalog Client Scripts:

g_service_catalog.isOrderGuide(). This method is designed for use within Service Portal and Mobile environments to identify if the current catalog item is being processed as part of an Order Guide.

if (typeof g_service_catalog !== 'undefined' && g_service_catalog.isOrderGuide()) {
// Code to execute if running within an Order Guide in Service Portal/Mobile
} else {
// Code for other contexts (e.g., native UI or standalone catalog item)
}

 

Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Pavani P

View solution in original post

6 REPLIES 6

How so?

The need was to hide the fields any time the item was being requested as part of any order guide, not just a specific order guide with a specific variable. The particular item is included in 10 different order guides that all have their own variables to determine which catalog items to include.