Page 1 of 1

Questionnaire issue

Posted: 05 May 2015, 17:48
by dmcman73
I've noticed that when I use a Questionnaire on the Careers page and have it active on a job, a candidate can fill out the application part fine (Name, email, EEO Gender, etc) and then be sent to the Questionnaire. After they fill the Questionnaire out and submit it, the page will stall for a second and then return to the job postings.

When I go into the Candidates tab and look at the new candidate, everything is there EXCEPT for the EEO information (Gender, disability, etc). If I remove the Questionnaire from that Job posting and then fill out the application without the Questionnaire, everything shows up.

Any reason why the EEO portion would be the only thing that using the Questionnaire would not post?

Re: Questionnaire issue

Posted: 07 May 2015, 04:51
by dmcman73
Ok, I am getting closer to figuring this out but my PHP is really weak. I found that at the end of the 'Questionnaire.php' in the lib directory was incomplete. Here is the code:

return $candidate->update(
$cData['candidateID'],
$isActive ? true : false,
$cData['firstName'],
$cData['middleName'],
$cData['lastName'],
$cData['email1'],
$cData['email2'],
$cData['phoneHome'],
$cData['phoneCell'],
$cData['phoneWork'],
$cData['address'],
$cData['city'],
$cData['state'],
$cData['zip'],
$source,
$keySkills,
$cData['dateAvailable'],
$cData['currentEmployer'],
$canRelocate ? true : false,
$cData['currentPay'],
$cData['desiredPay'],
$notes,
$cData['webSite'],
$cData['bestTimeToCall'],
$cData['owner'],
$isHot ? true : false,
$cdata['email'],
$cdata['emailAddress'],
$gender = '',
$race = '',
$veteran = '',
$disability = ''
);


I had to add he EEO values at the end (gender, race, veteran and disability). If I add $gender ? m : f, I can get Female, regardless if I chose Male or Female in the application, to show up in the Show Candidate. What can I type in there to tell it to pull the value of the selected drop down list that was stated (m or f which is the value) and also for the veterans since there are multiple values (1 - 5) as well?