Forums

Drop down menu selection

chriso0258 14 Sep, 2015
Hello,

I have two drop down menus on my form. Both are dynamic drop downs. Depending on what region you select, the corresponding sites will be listed in the site drop down.

In the picture below you can see that the site RMSI has been selected.
[attachment=0]dropdown orig.jpg[/attachment]
When a user submits the form, the data is run through my validation script. If an error is determined anywhere on the form I use an event loop to reload the form. As you can see, all the data is maintained but the site defaults to the first option in the list instead of the site the user selected.
[attachment=1]dropdown reloaded.jpg[/attachment]
Here is the debug information:
[attachment=2]dropdown debug.jpg[/attachment]
Is there a script or way I can get the original site the user selected to be the selected option on the list when the page is reloaded?

Thanks for you help
Chris.
This topic is locked and no more replies can be posted.