This question is closely related to http://drupal.org/node/657732 I think. I have a list of restaurants nodes built with CCK. One of the field is 'Contact Email Address'. What I am trying to do is put a webform block on a restaurant detail page and once it's filled out and the user clicks 'submit', have the email go to whatever address is in that nodes 'Contact Email Address'.
I have been able to use Webform and put in a hidden field with a value of %get[restaurant_email]. Then I build the link to the webform and add the mysite.com?restaurant_email=$value_of_email_field. The webform then has the correct "TO:" email address.
I would simply like to use the Webform Block module and embed the form on the node itself.
Any ideas?
Thanks,
Tim
Comments
Comment #1
stephenrobinson commenteddont add an email notification, leave it blank, and add some php code to the submit addditional php textarea of the form as php code to get the argument, e.g.
Comment #2
stephenrobinson commentedalso you could: