hierarchial select + nodereference

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?

Login to post comments

*_*

beautifulmind's picture
beautifulmind - Mon, 2009-10-26 05:18

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 - Tue, 2009-10-27 08:52

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?


*_*

beautifulmind's picture
beautifulmind - Tue, 2009-10-27 10:31

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?

opensanta's picture
opensanta - Thu, 2009-11-12 17:56