Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Cannot get drop downs to work

Jodi1725
Level 4
Level 4

HI!

I am trying to create drop down boxes where what I select in the first drop down determines what shows up in the other.  I have the Java code but it isn't working.  Anyone willing to look at my form to see what my problem is   Let me know and I will send it.  

Thanks tons!

Jodi

0 Replies
Niall_O_Donovan
Level 10
Level 10

Hi Jodi,

Can you have a look at the example here and see if you can adapt it to work for your own form:

http://assure.ly/jcTahK - populating dropdowns

http://assure.ly/gcXx03 - scripting a null pattern for a dropdown (which also has an example of populating).

The trick is to have the script in the preOpen event of the second dropdown; looking back at the value of the first dropdown.

Hope that helps,

Niall

Jodi1725
Level 4
Level 4

I finally figured it out.  I had all the javascript correct - just on the wrong action!  I had to put it on the exit not change !