Hi all,
I'm trying to create a dynamic, modal window based on some user selections from a combo box. If the user selects option 1 from the combo box, I'd like to have a number edit box appear for the user to enter in a value. If the user selects option 2 from the combo box, I'd like to have two number edit boxes appear for the user to fill out.
I've made numerous attempts at trying to get the number boxes to appear and/or change depending on the combo box selection with no luck. I have posted one such attempt below. Any help would be greatly appreciated!
Thanks.
new Window("test",
modal,
x=Combo Box({"1","2"},
<< set function(function({this},
value = this << get;
//print(value);
return(value);
);
),
),
if(value == 3, H List Box(y = number edit box(.)));
if(value == 4,
H List Box(
y = number edit box(.),
y2 = number edit box(.),
)
)
);