Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
I want to apply "onchange" event in cck field. ie.
I have create three fields "country", "state" and "city" using CCK. Now i want when i will change country fields value, "state" value should change on country basis.
When i will change state value, city value should change accordingly.
Please suggest me, how i will do it.
Thanks
Comments
Comment #1
rfayThis is called a "dependent dropdown".
I don't know how you can do it in CCK.
There *is* an example of how to do dependent dropdowns using AHAH Forms in the Examples project in the AHAH Example.
Comment #2
mdupontThis is a CCK issue rather than a Drupal Core issue. You can have a look at how the Conditional Fields module works, it may help.