I have an application form with a job reference field where the user selects the job they are applying for. The job listings have an apply now link that links to this form. It passes through an ID in the querystring which appears to be the job ID but I can't seem to get the job reference to default to that ID automatically. It would be nice if when the user clicked the apply now link this field ws prepopulated with the correct job reference.

I was thinking of writing a form alter to try and do this myself but just wondering if someone has already done this or there is an easy way that I have missed.

Comments

ivan zugec’s picture

Status: Active » Fixed

You can't do what your asking for out of the box.

Relationships between jobs and applications are handled by the relation (http://drupal.org/project/relation) module.

When you create an application reference field it then creates a relation type in the system. When a user fills out a form it creates a relationship between the job and application.

beauz’s picture

Hmm I'm still a little unclear on how this works...
I have a job-type named 'job' with an application field
I have an application-type named 'application' with a first-name, last-name and 2 extra fields - resume/cv upload (filefield) and job (job reference field)

I can see on the list applications page (admin/recruit/applications) that if I apply for a job it carries across the job automatically and it shows in this list.
What I wanted to do however is when someone applies for a job use the rules module to send the admin an email with the details including what jo was applied for and I can't seem to work this out...

ivan zugec’s picture

Oh I see, I have not used this module with Rules. I may have to write some integration code for it to work well with Rules.

marco71’s picture

Hi Ivan,

Am I right in concluding: If I have a "Job" set up (with a Job reference) someone applies via the application reference button... Fills in the fields on the application form, the actual reference is not being carried to the application? So as far as I can figure out the relation is to the title of the content? I figure this since I have made a "content type" with a Job reference and an Application reference "Apply now" button.

What I notice: The title ends up in the application in the "Job" column which is great but I would love to be able to see the reference as well. Am I a dumb ass? Or is this correct?

I am trying to write a bit of a tutorial for some people who need to start using it so I want to be correct.

Since this looks to be a little related I don't make a new Issue.

marco71’s picture

Hi beauz,
Did you figure this out?
"What I wanted to do however is when someone applies for a job use the rules module to send the admin an email with the details including what jo was applied for and I can't seem to work this out..."

I would be very interested to know how you did.
Particularly the email notification.

beauz’s picture

No, haven't worked it out yet, the site it was for has been on hold the last few weeks but I'll probably look into it again this weekend. Please share if you find a way to do it!

beauz’s picture

Status: Fixed » Active
marco71’s picture

Sure. I am still looking for solutions. In java I would just write some listener. My PHP is no good though. So I won't be trying, I think. Since Ivan said he might have to write some integration code I was sort of waiting for you and him ;-) . I think it would be a very useful addition to the module I think.

marco71’s picture

Ivan,

Is there any advice you can offer on this thing. It would really be a nice feature is the appliction field would be able to figure out, to which Job was applied. As is, it's wokable for a few Jobs. But imagine having a dropdown list with lets say 100 different Jobs in there. User would have to scroll down to the correct job....

If I get Solr to work on entities beta8 or recruit working with beta10 entity(I haven't managed to get Recruit and Solr to play together) and get this thing to work this is really a great combination. (Also wanna say thanks for those Guides :-) on Solr Search Api. Your a busy guy.)

Maybe I am missing something. Can you advice

iRex’s picture

subscribing

ivan zugec’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

Closing issue because it relates to the 7.x-1.x branch. Please use 7.x-2.x.