UI Policy Not Hiding Fields Properly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hello,
I am currently setting up a catalog item, and I need certain fields to be displayed depending on the user’s selection.
My goal is for only the Choice field to be visible when the form loads, and for the conditional variables to appear afterward based on what the user selects.
I tried using a Catalog UI Policy to hide the fields that should not be visible by default, but the policy only applies to one field at a time (only one field hides properly).
I need your assistance to solve this issue and allow multiple fields to show or hide depending on the selected value.
Thank you in advance for your help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Possible issue can be if any of this fields that are not hiding, are marked as mandatory. Fields will not be hidden by a UI Policy if any of those are marked as mandatory. This should be handled inside the UI Policy itself, not in the question record.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Ji @ADJARATOUT ,
This can happen due to some reasons, like
1. The fields that you are trying to hide are mandatory (before you made the UI policy).
2. Some scripts, like client scripts, have been working behind the scenes.
3. Finally, you have to check the order of UI Policy.
This can be the cause of the problem; my guess will be the script.
If you find my answer useful, please mark it as Helpful and Correct 😊
Regards,
Soham Tipnis
ServiceNow Developer || Technical Consultant
LinkedIn: www.linkedin.com/in/sohamtipnis10

