Catalog UI Policies to hide the fields
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Below is my requirement.
Upon selecting "Is the user External" checkbox, the user can see the "Requested for(External)" field and if not selected then the user should see "Requested for (Internal)" field.
Upon selecting "User not found" checkbox, the user can see the first name, last name and email fields and will be hidden if it is unchecked.
I have written UI policies for this, and it is working in catalog item view.
But if the user selects, user not found as true and "Is the user External?" as false then the first name, last name and email fields are hidden in catalog item view but visible in RITM view. As per the UI policy, it should be hidden in both cat item view and in RITM view as it should be visible only for external users. I need to hide this in RITM view as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
seems both the UI policies are having some contradiction
Both the UI policies should have On load - True
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
Yes, I have both of them marked "On load - True".
It is hidden in catalog item view but not in the RITM view.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
any other catalog client script or UI policy is running on RITM view which might be breaking those 2 UI policies?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
47m ago
No Client scripts are running, only these 3 UI policies are running.