Is it possible to add a node reference field using th webform module? If it is, how can I add it in my webform? Thanks in advance.
I done this but for a user reference by creating a new module and a new webform component.
This new component effectively recreates the user reference functionality and allows you to choose it on the webform. You could try the same approach to do it for a node reference.
Also there are some good examples in the webform examples to help you with the basics in creating a new component with hooks like
The main thing which will help you is the
...In the module add something like the below (obviously change for node lookup):
You will need to choose what you want in the node reference too as by default it would just be the nid which in an email would be pretty useless..
You should dump the old Webform module and take a look at Entity Form :)
It allows you to add for example Node reference field for your form. Were neat module!
Entityforms module uses the standard Drupal fields which means you can use any standard Drupal fields. For those of you who have used Webforms, this module brings Webform's functionality into the "standard" Drupal field / entity world.
While Webform is a great module with a huge following, it does not integrate with standard Drupal field or entity aware modules. So for Drupal 7 sites, it is recommended to use Entityforms module!
Like Webform, it integrates well with Rules module for form submission notifications and allows for complex notifications logic.