Catalog UI Policies to hide the fields
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
5 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
4 hours ago
Hi @divyadhanda !
Check UI policies conditions and especially the use of "Reverse if false".
Looks like you making fields mandatory and visible when the conditions are not true. Not sure if is something that you want to accomplish.
Mark helpful if makes sense. 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
@divyadhanda , It's always better to use Catalog Client script in such use cases. UI policies usually written on the same fields cause conflict.
If my response has helped you, kindly mark as helpful and accept as solution.
Regards,
Nayan