dependent drop down need multiple options
Hello-
I have a parent dropdown with 3 dependents but I need only some items to show when certain items are selected. Code it quite long so here is a bit........what I need is when None is selected from the first dependant list, I only need 2 options to show, where as if any other selection is made I still need all options so show.
The highlighted items are what I need visible:
var f = this.getField("Additional Capabilities");
switch(event.value)
{
case "Absolute Pressure Decay, Occlusion, Verify": This is the parent dropdown
f.setItems(["-Select Additional Capability-",
"None", when this is selected
"Mass Flow",
"Ramp to Event",
"Mass Flow & Ramp to Event",
"Volumetric",
"Low Volume"]);
break;
case "Differential Pressure Decay, Occlusion":
var f = this.getField("Transducer Range");
switch(event.value)
{
case "Absolute Pressure Decay, Occlusion, Verify":
f.setItems(["-Select Transducer Range-",
"20 psia",
"45 psia",
"115 psia",
"215 psia",
"515 psia",
"other"]); I only need these 2 options selected, otherwise the entire list should show
break;
How do I make logic inside of logic if that makes sense?
Thank you so much, hope this make sense.
Nora
