Creating a dynanic dropdown field that doesn't automatically display the default option in the box.
Hello, I am trying to create a drop down box that has the options within auto-filled based on the selection from the previous box. I found code that worked on the forums, but any time a choice is made, it will revert back to whatever choice is listed first within the code.
Dropdown box 1 custom calculation script is:
switch (event.value) {
case "Select:":
this.getField("SubProvType").setItems(["Please Make a Selcetion In The Previous Box First!"]);
break;
case "Choice1":
this.getField("SubProvType").setItems(["A","B","C","D"]);
break;
case "Choice2":
this.getField("SubProvType").setItems(["E","F","G","H"]);
break;
}
This will display the correct options in the second box, but if Choice1 is selected in the first box, then any choice made in the second box reverts back to "A" instantly. Is there something I can add to the code or some option that can be selected that will allow the chosen "Letter" to remain chosen, or will it always revert back to the first option listed in the code?
