variables being hidden, can't find why

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2023 09:14 PM
So I have a couple of variables on a catalog item, that are hidden when the item is opened in the portal.
Their direct settings have then as NOT hidden and once some other fields have been filled the fields show up.
I'm sure that it is being hidden (and shown) because of a UI Policy in the catalog item, however I cannot at all find it.
Is there a way to see what UI Policies are running/activated at any particular time so I can track down where to 'fix' my issue?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2023 09:19 PM
Utilize the Script Debugger: The Script Debugger is a valuable tool for examining the execution of UI Policies. Set breakpoints at strategic points in the code to pinpoint the exact UI Policy that's manipulating the visibility of your fields.
Examine the UI Policy History: This feature provides a chronological record of UI Policy executions, revealing which policies have been active and what actions they've performed. This can help you narrow down your search for the offending UI Policy.
Check for UI Policies referencing the variables: Search for the variable names in the UI Policy editor to identify any policies that might be affecting their visibility.
Perform a global search for UI Policies related to the catalog item: This broader search can uncover UI Policies that might be indirectly influencing the visibility of your fields.
In my experience, these methods have proven effective in pinpointing the source of UI Policy-related issues. Remember, patience and persistence are key.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2023 09:38 PM
Hi,
Ideal option is to open the catalog item by navigating to Service catalog >> Catalog Definitions >> Maintain items
Filter by catalog item name, open the record, scroll to the bottom and check for UI Policies and client scripts.
In case you don;t find anything, check if there are any Variable sets and then open the variable set and check for UI policies and client scripts.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2023 09:49 PM
Hi @Bidduam ,
The easiest way to find them would be to check the variables under UI policy action tab by their backend name. That will tell u whether the variable which u r looking for is utilised under which UI policy. Then u can open the UI policy n make necessary changes.
In case of client script again u can filter out using script contains the backend name of the variable.it will give u the list of scripts where that variables are being used if they are. Accordingly make necessary changes
Thanks,
Danish