1

First part as in title and how to detect different webforms?

Ex. function name - hook_webform_submission_actions

Replace 'webform' with form id?

1 Answer 1

3

If you just want to customize the target email, webform do this quite easily.
Go to node/123/webform/emails (where 123 is you nid) and there you can configure the recipients.
The option "component value" allows you for example to set the email regarding a select list. Configure a select list for the subject, put these values in the option textarea:

contac[email protected]|General inquiries
[email protected]|Marketing

Then when the user will use webform the email will be sent to the direction chosen in the subject list.

If you want something more advanced, have a look at my previous answer in "pass cck email value to webform block". This will help you to detect different webform (using hook_form_alter.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.