How to create dependent dropdown boxes

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
mandarmbhagwat78's picture

I am working on ajaxing country and city dropdown boxes. Able to fill city dropdown on country selection. Having an issue while editing the node. No issue for country dropdown but if I am changing country and selecting some other city it is giving error message. There is something I am missing in allowed_values. Anyone knows how to tackle this issue.

Comments

U can use jquery for this

vinaykimi's picture

Hey , U can use jquery for this , hiding one layer and making other layer to apper on change,

I have used jquery to

mandarmbhagwat78's picture

I have used jquery to populate city dropdown. The issue is when I am changing country, selecting city and saving the node. It is giving invalid entry error. Country and city are cck dropdown fields.

Thanks,
Mandar Bhagwat
+91 98224 39199
skype: mandar.bhagwat78

I,remember, I too get this

vinaykimi's picture

I,remember, I too get this error,I think its database mapping error , map the countries and city properly, its not syntax error.

WOuld be great if you would

Summit's picture

WOuld be great if you would post your solution. Difficult to find a working solution for this.
Thanks a lot in advance for your reply!
Greetings, Martijn

Check out Hierarchical Select

optidel's picture

Check out Hierarchical Select - http://drupal.org/project/hierarchical_select

Pune

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: