Catalog Item Variable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-07-2023 02:33 AM
Hello Team so i created a Catalog UI policy to hide a field but i want when the field is visible again to make it Mandatory is this possible ?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-07-2023 04:53 AM
Hi Yoli,
So sounds like you have two choices.
On your existing UI policy you can tick reverse if false, this will cause your UI policy to undo anything it did when it ran and do the opposite. Including setting mandatory (if you set mandatory to false it will reverse it to true).
UI Policy which hides country
condition region is empty
country visibility is false, country mandatory is false.
Reverse if false ticked
^This means that when region is not empty, the ui policy will set mandatory and visibility to true on country.
The alternative is to flip it around and mark country as hidden, then change your UI policy to make country visible and mandatory if region is NOT empty.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-07-2023 03:05 AM
Hi @yoli ,
What are the conditions to hide and display variable on form?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-07-2023 04:21 AM
@Ashwini Jadhao So backstory i have a filed called region and a field called country. in my UI policy if the region is empty then Hide the field country. so what i want is when country if visible after the user put a value in region is to make country also mandatory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-07-2023 05:02 AM
Hi @yoli1
1.You have to write UI policy with condition as "region is empty" set Country to display false.
Check "reverse if false" as true.
2.Write another UI policy with condition as "region is not empty" then set Country to mandatory true.
Check "reverse if false" as true.
Mark my answer correct and helpful if it works for you.