Clear the field values user changes options from a Multi Choice values(Radio Buttons) in a catalog

Bijay Kumar Sha
Giga Guru

Hi,

I've a Multi Choice Variable (Radio Buttons) in a catalog Item and there are different variable sets. Those variables available in the variable sets are being utilize by above Choice values.

Currently, let's say I select one Choice Value from the Multi Choice Variable, then few variables are being shown up. And If I jump to another Choice Value, then other set of variables are being shown up and so on.

But, If I fill-up few variables and jump to another choice value (Radio button) from the Multi Choice variable and If any particular variable is being used again, and whatever values I've input earlier, it keeps it as it is. It's not getting clear.

My requirement is If I change the Multi Choice values from one to another, then the values containing in different variables should be cleared on the Catalog FOrm.

How I can achieve it?

1 REPLY 1

Sandeep Rajput
Tera Patron
Tera Patron

@Bijay Kumar Sha You can use UI Policy to not only show/hide variables but also use the Clear Value checkbox to clear the value of the field.

 

Screenshot 2024-08-23 at 1.22.14 PM.png

Please refer to https://docs.servicenow.com/bundle/xanadu-platform-administration/page/administer/form-administratio... to know more about UI Policy.