Clash of the UI Policy and scripts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2025 01:38 PM
Hi all ,
I am facing the error when the UI policy gets clashed . I built a UI catalog policy such that when we select NO for first drop down then we get another dropdown . If we select YES for the 2nd dropdown then Type of VDI should come as Dev as shown in the image .
But when i select NO and then again select YES for the 2nd dropdown , the below Type of VDI does not show as dev as shown in the below image .
I have made the type of vdi variable as visible originally and in catalog ui policy i am setting the value of type of vdi variable and making it visible too when you select yes on 2nd dropdown .
Can you please suggest as solution so that whenever i select yes in the 2nd dropdown i do get type of vdi visible ?
Thanks for the solutions and help .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2025 03:51 PM
It is a bit difficult to analyze what went wrong without taking a look at the Catalog UI Policies and UI Policy Actions.
But understanding the requirements, it should be straight forward and no scripting needed.
- First UI Policy should have the conditions when variable1 != No:
UI Policy Action: variable2 (Mandatory = false, Visible = false, Value action = Clear Value) - Second UI Policy should have the conditions when variable2 = Yes:
UI Policy Action: Variable3 (Visible=true, Value Action = Set Value (vdi))
Could you please try the above and let me know if that would help!
If you found this helpful, please hit the thumbs-up button and mark as correct. That helps others find their solutions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2025 12:24 PM
Hi thanks for the solution . However when i tried it did not work but when i tried the reverse false method then it worked .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2025 12:43 PM
@aagnihotri
Happy to know that it worked! True that, I did not mention the "Reverse if false" to be checked as this is OOTB checked by default until unless you uncheck it.
If the issue is solved, please mark it as helpful and accept the solution to close this thread.
If you found this helpful, please hit the thumbs-up button and mark as correct. That helps others find their solutions.