Is there a way to do "Show if selected" with select input type?

The show if selected option a toggle/text input product option is a really cool feature. Why not have it available for the select input type?

For example, I'd like to have a toggle for Stain (toggle off is raw toggle on is stained). Then, if the user selected the toggle show a select box for the stain options.

Also, semi-related I tried to implement this myself with a custom field, but I couldnt figure out how to make a null value for select. So if the select is an optional field how do I generate a variant that has no value for stain option.

For example with Stained as the toggle you get these variants,

Birch, Stained, StainColor1

Birch, StainColor1

So for the boolean we get the null value variant. How would I generate the variant with a null value for StainColor? So, in this example we'd have just Birch as a variation.

Sign In or Register to comment.