hierarchial select + nodereference

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

Hi,

I have a hierarchial select field for taxonomy & a node reference field in a CCK.
I wish to populate the node reference field based on the taxonomy term selected via the hierarchical select without submitting the form(without creating the node).

Any solution to this?

Comments

*_*

beautifulmind's picture

For that you have to alter the form element with hook_form_alter and need to accomodate '#ahah'.
Reade more about ahah at
http://api.drupal.org/api/drupal/developer--topics--forms_api_reference....

Regards.

No AHAH ....

Sree's picture

Thanks for your quick reply.
I do not wish to proceed further with AHAH .... is there any other alternative way by which I can achieve this?

Sree

*_*

beautifulmind's picture

Yes you can.
You can write a js which makes a call to a php function within your .module or .inc.php file using $.ajax of Jquery.

Regards.

Have you tried this?