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

rfay’s picture

This 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.

mdupont’s picture

Project: Drupal core » Content Construction Kit (CCK)
Version: 6.x-dev » 6.x-2.x-dev
Component: ajax system » General

This 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.