UI Policy to hide a variable set

Christopher Hug
Tera Contributor

Why is it that in order to hide/show a variable set in a UI Policy Action the mandatory has to be set to true/false? If mandatory is set to leave alone, setting the visible to true/false does nothing.

 

My issue is I want to hide an entire variable set, which setting mandatory false and visible false works, but if a certain condition exists I want to set the visibility to true. In order to do this mandatory must be true or nothing happens. By setting mandatory as true it sets every variable in the variable set as mandatory which I do not want. Has anyone experienced this? Is there a work around. My variable set has 59 variables so I do not want to create a UI Policy Action for each one.

1 REPLY 1

Brad Bowman
Kilo Patron
Kilo Patron

Try with a Catalog Client Script instead that applies to the Catalog Item, not the variable set.  Use g_form.setDisplay('variable set name', false) to hide, true to show.