Expand my Community achievements bar.

Cannot get drop downs to work

Avatar

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

2 Replies

Avatar

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

Avatar

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 !