- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2024 10:27 AM - edited 06-18-2024 11:00 AM
In catalog item there is field called [Product] it has (choice - none ,a,b,c.)
If Product is a or b there is another field called issue [severity] should be visible (choices - none,one,two,three)
If severity is one or two or three there is another filed called [impacted count] should be visible.( choice -none, me, mew+few)
Here the issue is if I select [Product] as C [severity] field is hiding but [Impacted count] is still visible.
*How many UI policy we need to write for this and what should be the conditions?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2024 11:50 AM
Hello,
In your second ui policy, you canbuild the condition like this :
Severity is one of [one, two, three] and
Product is one of [a, b] and it will work.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2024 11:02 AM
So you'll need two UI policies, and a one line of script will be needed in both to clear values, which if you don't you'll see similar behavior to what you're seeing now where Impacted count is still shown. Keep in mind, in the script that I have in my example, you'll need to replace the field name with your field name.
Here is the first UI policy
Here is the script section on that UI policy
Here is the second UI policy
Here is the script section
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2024 11:05 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2024 11:11 AM - edited 06-18-2024 11:12 AM
If product is "a" choice as variables severity and impacted count is showing and mandatroy but if select product is "c" only severity is getting invisible not impacted count.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2024 12:03 PM
As I mentioned, you have to click the script step, and add the line I put, with your field as the value, to clear out the value. The reason why it is still showing, is because without clearing that value, the original value you chose in Severity is still there, it's just hidden, which is causing impacted count to show.