Hi All,

I am trying to create a form that has two drop down list boxes. Does any know if there is a way to create the form in drupal api that will let me re-load the items in dropdown list 2 based on the item selected in dropdownlist 1?
For example:
Drop Down List 1:
----------------------
List Title: Country
Items in the List:
USA
Canada

Drop Down List 2:
----------------------
List Title: State/Province
Items in the List:
Based on selection made in Drop Down List 1

Comments

ctspsr’s picture

For the above situation (Loading one drop down list based on the choice made in another drop down list) did any one wrote an AJAX script with a form built on drupal api?
If so appreciate if you can share with me any related code snippet.

MVRider’s picture

I stumbled on this question because I'm looking for the same thing. I wrote this previously with AJAX but not for a Drupal site.

I'm trying to build it custom now and if anyone has already done this please send me some info. Like wise if I build it I'll pass it along to you.

Thanks,
-P

tmp’s picture

I'm very interessed.
Just watching this.

manuj_78’s picture

me subscribing too

whatistocome’s picture

this feature request just came up in my work yesterday; subscribing

cuverkle’s picture

Seems like a high bar for my first customisation in drupal but I'm looking excactely for this feature as well. A "nice-menu" list of 150 Entries without the ability to scroll is not really statisfying. I'm thinking of 2 oldschool javascript drop-down lists.
I will start my reseach in the hope that something happens in this thread as well.