Show/Hide Variable Set in Catalog Item based on the option selected in multi choice variable field.

1__TimothyO
Tera Contributor

I have a Catalog Item that has variable fields including a Multiple Choice field and two Variable Sets.  I will like that initially neither Variable Set is visible, then when an option in the Multiple Choice field is selected one of the variable set shows and the other one is hidden. Likewise, if the second option in the Multiple Choice field is selected, I want the second Variable Set to be shown while the other is hidden.

 

2 REPLIES 2

Mark Manders
Mega Patron

And show both on both options, I guess? 
You can use a catalog UI policy to hide fields, based on the value of another field. 'If mc field does not contain xxx, hide'.


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

Nayum Pasha
Tera Contributor

Change: Applies to --> Catalog Item and select the catalog item name instaed of Variable set name

Use this g_form.setDisplay('VARIABLE_SET_NAME',false); on UI Policy or Client Script. before this add a condition for checking for options.

Replace 'VARIABLE_SET_NAME' with the name of your variable set.