Posted by Sree on October 23, 2009 at 10:16am
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
*_*
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.
BeautifulMind
No AHAH ....
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
*_*
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.
BeautifulMind
Have you tried this?
Have you tried this? http://drupal.org/project/hs_nodereference