Questionnaire Panel? | ATS Screening Questions? | Recommendation |
---|---|---|
Complete Uplifting the Questionnaire Panel | ||
<script
type="text/javascript"
- src="https://seekcdn.com/hirer/indirect-posting/questionnaire-panel/SEEKQuestionnairePanel.js"
+ src="https://integration.seek.com/panels/SeekApi.js"
></script>
SeekApi.render
:- SEEKQuestionnairePanel.render(containerNode, options);
+ const { dispatchEvent } = SeekApi.render(containerNode, 'questionnaire', props);
errorHandler
as the SDK will display consistent and actionable error messages to the end user.The SEEK API will now tailor question recommendations to the location of the job ad and domicile of the SEEK hirer account.
This enhancement works transparently without any additional partner effort.The new dispatchEvent('seek:questionnaire:save')
function call replaces the previous SEEKQuestionnairePanel.save()
method.const postSeekJobAd = async (input) => {
// Call a posting mutation to post or update a SEEK job ad.
};
const handleSubmitButton = async () => {
const input = {
// Compose from form data.
};
const result = await SEEKQuestionnairePanel.save();
if (result.errorCode) {
// Do not post the job ad if an error occurs while saving the questionnaire.
// The panel will display an error message to the hirer.
return;
}
// Data will be nullish if the hirer did not add any questions via the panel.
if (result.data?.id) {
input.positionProfile.seekApplicationQuestionnaireId = result.data.id;
}
await postSeekJobAd(input);
};
result
from saving the questionnaire has been slightly tweaked,
but it should be functionally equivalent:Before | After | Description |
---|---|---|
data | data | Same behaviour as before |
data.id | data.id | Same behaviour as before |
errorCode | isError | Simplified to a boolean |
dispatchEvent('seek:questionnaire:save')
instead of SEEKQuestionnairePanel.save()
.