How to make a Conditional Listbox?
Hi, how to make one listbox depend on the entry of another preceding it? Example, if I choose Country="US" in first listbox, how to make the second listbox only display US states? Also, if one chooses to reselect to Country="Canada", can I somehow make the second listbox refresh with the Canadian provinces?
Country = {US, Canada, Mexico};
USSub = {Alaska, Arizona, California};
CanadaSub = {British Columbia, Alberta, Saskatchewan};
MexicoSub = {Baha North, Baha South, Sonora};
If(Country=="US",Sub=USSub,Country=="Canada",Sub=CanadaSub,Country=="Mexico",Sub=MexicoSub);
TextBox("Country:"),
name_box1 = ListBox(Country),
choiceCountry = name_box1 << get selected,
TextBox("State-Province:"),
name_box2 = ListBox(Sub),
choiceSub = name_box2 << get selected,
Message was edited by: djhanson
Message was edited by: djhanson