- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2025 10:53 AM
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"?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2025 11:05 AM
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 as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2025 11:37 AM
How so?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2025 11:41 AM
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.