Community & Support

how to create 2 associated select lists using CCK?

i want to create a new content type which consists of "country" and "city", both of them are select list
the users can select their country first, for example , USA
then the "city" shows New York, Washington, etc
if they select China, then the "city" shows Beijing ,Shanghai , etc

i don't know if CCK can handle this, or other modules need? or i need to write my own module?
Thanks a lot.

Comments

Try this module.

I think this is exactly what you are looking for.

http://drupal.org/project/FixedDataDropdown

Regards

thank u for your

thank u for your suggestion.
I tried this module, and i found it worked a bit differently fromwaht i want
that is , i want two select lists, users can choose one from the first, and then the second
but FixedDataDropdown just give me a textfield, not the first select list...

Please try these

http://drupal.org/project/dependantDropdown

http://drupal.org/project/activeselect

I hope these are what you are looking for.

Regards

How would you do this in

How would you do this in D6?

Dependent Dropdown and Active Select are both only for Drupal 5.

Is there a core or core CCK way of doing this in Drupal 6?

Regards

nobody click here