UI Policy not working as expected

Noor Mohammad1
Kilo Guru

UI policy "Clear the variable value" makes a field empty even the condition is false in Catalog items.

I've created a catalog item with several variables, then added UI policy to show and require some variables based on answer to a previous question.

  • "Applies on Requested Items" is checked on UI Policy
  • UI Policy Action is configured as follows: 

 

NoorMohammad1_0-1666516679677.png

 

It works fine in service portal, but then on requested item view the value is empty (it should include user's answer).

It works if I uncheck the 'Clear the variable value', but I want it to be cleared when user selects something else... Is there any other way to make it work?

1 ACCEPTED SOLUTION

Noor Mohammad1
Kilo Guru

for some weird reason UI policies were impacting when onload is checked so UI policy script was added to fix it where clear variable value is required.

View solution in original post

6 REPLIES 6

Noor Mohammad1
Kilo Guru

for some weird reason UI policies were impacting when onload is checked so UI policy script was added to fix it where clear variable value is required.

Hi @Noor Mohammad1 - we are experiencing this same thing after upgrading from Rome to Tokyo. Do you know if this is a product bug? or is it something that was intentionally changed in the product?

 

Also, would you mind sharing the UI Policy Script you added to fix this? Appreciate it.


Susan Williams, Lexmark