Hi
I'm making a job website
on each node has a webform
to apply for a job

The job agents need to know
which job was the form filled
in for?

Do you know how I add reference to the form please?

Many Thanks
Charles

Comments

quicksketch’s picture

The easiest way is probably to just use the token for [current-page:url] as the default value of a hidden or textfield. Webform doesn't really have support for "Node References" in the normal sense.

charlie charles’s picture

Many Thanks for your time and help quicksketch
I'm most grateful :)

Would you please let me know
can I do this with webeforms

The same as this website
click on the apply button
and the info passed to the next page

http://jobs.theguardian.com/job/4684865/relief-floating-support-workers/...

Then once the message is sent
a person receives the CV with a job reference

Many Thanks for you help again

quicksketch’s picture

What I would do in this situation is make a link to a Webform that include a value in the query string. i.e. the link would be http://example.com/path/to/form?job=10&referrer=http://example.com/path/to/job. Then in your Webform, populate the value of a hidden field with [current-page:query:referrer] (see this handbook page on working with default values, though it's out-of-date with its examples). To display the relevant information about the job next to the job posting, you'd need to theme your form to display the information you want next to it. See the THEMING.txt file included with Webform for an introduction to customizing the display of your Webform (which would require coding in this case).

charlie charles’s picture

Many Thanks again for your great advise
quicksketch

I'm still new to drupal i think "link to a Webform that include a value in the query string"
is going be above my skillset at the moment

I'll have put webform on the same page
as the job description

Would let me know please?
How can I add the node title
to email sent by web form or field value?

Many Thanks again for your great help

quicksketch’s picture

Issue summary: View changes

Sorry I never got back to this issue.

I'll have put webform on the same page
as the job description

This makes the problem quite a bit more difficult. You can't do this currently with tokens because there isn't a way for you to get the current page's node with a token currently. There is a feature request for this at #919760: Add a [current-page:object:?] dynamic token

If you're still having trouble that I can help with, let me know. From a user-perspective, I think the best option for you may be to apply the patch in that issue and then use the new token to populate your fields.

quicksketch’s picture

Status: Active » Closed (fixed)

Closing after lack of activity.