Clash of the UI Policy and scripts

akankshaa
Tera Contributor

Hi all ,

 

I am facing the error wui.pnghen 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 .

 

UI Part 1.png

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 . 

3 REPLIES 3

Medi C
Giga Sage

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))
    MediC_0-1741131875914.png

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.

aagnihotri
Tera Contributor

Hi thanks for the solution . However when i tried it did not work but when i tried the reverse false method then it worked . 

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

MediC_0-1741207334423.png


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.