Copy link to clipboard
Copied
Hello,
I am trying to code two drop downs. The first is called Session1endtime. When this drop down gets a time selected (lets say 9:00) I want my second dropwdown called SessionType1 to give me a specific list of options depending on the first dropdown end time.
Copy link to clipboard
Copied
You can use setItems() to populate second dropdown, here is an example script used at 'Validation' of first dropdown:
if(event.value == "9:00")
this.getField("SessionType1").setItems(["Item1","Item2"]);
else if(event.value == "10:00")
this.getField("SessionType1").setItems(["Item3","Item4"]);
else
this.getField("SessionType1").clearItems();