1

I have content type Organiser. and it has an email field Organiser email.

I have created a webform and added a node reference component which is referencing the Organiser content type.

I want to send an email on webform submission to the email address entered in the Organiser email in referenced node.

Is it possible with rules without entering the php code in the rules action?

0

I have done some work around to get this functionality.

Created a hidden component to the webform.

Then through hook_form_alter, get the organiser email from the referenced node and set it as the default value to that hidden field.

Then in the webform email settings, I selected that hidden webform component as the "Email to address".

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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