Hi, I have created a form with (a.o.) two dropdowns, where the options in the second dropdown are dependant on the chosen value of the previous dropdown. I've used this code as an example:
The second dropdown gets populated nicely and all goes well on a 1-page form.
But when someone fails to fill in a required field, upon validation the second dropdown empties and the values are forgotten.
The same happens on a multipage form, when I go to the second page and back, the dropdown's values are gone. They won't appear on the confirmation screen as well.
What am I missing and how can I solve this problem?
Thanks for the help!