HI all,
I want my form to dynamicaly update a select dropdown after a change of another one.
I've searched a lot about this: active select, dependant dropdown, #multistep...
I'm trying to do that with the ahah framework as aina in this topic : http://groups.drupal.org/node/2747#comment-10312
Does someone have an idea on how to do that with ahah?

Thanks a lot.

Comments

wiert’s picture

you can add
'#attributes' => array('onchange' => firemeup()),
to your formfield and writethe appropriate firemeup() javascript to return the values

Ocyrhoé’s picture

I have to many options and dependent event for using javascript.
I need to code hierarchical selects:

select1
opt1
opt2
opt3

select2
opt1 (for select1-opt1)
opt2 (for select1-opt1)
opt3 (for select1-opt1)
opt4 (for select1-opt2)
opt5 (for select1-opt2)
opt6 (for select1-opt2)

select3
...

thanks for your help