Catalog UI Policies to hide the fields

divyadhanda
Tera Contributor

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.

divyadhanda_1-1767007541421.png

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.

divyadhanda_2-1767007896615.png

divyadhanda_5-1767008073608.png

 

 

divyadhanda_4-1767007984205.png

 

 

6 REPLIES 6

rafaelramos0
Tera Expert

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. 🙂


nayanmule
Tera Guru

@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