I have a content type called "Job", that has fields for the job and an email field for the job contact. At the bottom of each job node there should be a button "apply now". If you click on the button, there should be a form with textfields, file upload (for the resumee) etc. If you send your application, an email should be sent to the job contact email (which is inside the job node).

What is the best way to achieve this? First I was thinking about using webforms, but I don't know how to get the job contact email form the node as the sendto webform email.

| improve this question | | | | |

You can create two content types

  1. Job
  2. Job Application

In Job Application, where you have resume upload etc, add a entity reference field to Job content type.

Then when you list the Job and add a link Apply Now to create Job Application.

Use Entity Refernce Prepopulate module to prepopulate the entity reference in Job Applciation based on URL.

Here is good video tutorial expaining Enity Reference Prepopualte module.

| improve this answer | | | | |

That's one of the default webform behaviours. Create and save the webform. Then, within the node/%nid/edit page, go to Webform > Emails and fill in your email there. There's no need to have the email as a separate field on the node.

| improve this answer | | | | |
  • But the email is different for each node. The user should enter the email but the user should not need to enter his email within the webform (or ever have to create the webform manually). – scar Jul 1 '14 at 10:18
  • ok, in that case, use @wolverine's solution. – Ollie Jul 1 '14 at 10:25

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