How do I make a catalog variable mandatory based on another catalog variable within a task

Blair5
Tera Guru

How do I make a catalog variable mandatory based on another catalog variable within a task? I have 2 variables that a support team should fill in when the task is closed. One is always mandatory, but the other is only mandatory if the first is "yes". I'm attaching the screen shot of the UI policy that I'm trying to work with. I've tried client scripts, but an onChange client script won't work since this is a variable.

Thanks.

2 REPLIES 2

matt_anderson
Kilo Contributor

Hi Blair,

Instead of running a script, have you tried creating a new Catalog UI Policy Action? You'll see the related list at the bottom of your UI Policy. These policy actions can set fields to mandatory, read only, and visible based on your condition set in the UI Policy. In your case, the condition would be if the first field is equal to yes or true.

http://wiki.service-now.com/index.php?title=Creating_a_UI_Policy


I tried creating a UI policy. This is a catalog variable that is shown on the catalog task. The variables become mandatory when the task is closed. If one of the variables is Yes, then the other should be mandatory. We also tried creating a catalog UI policy on the variable set, but that didn't work either.