Bullhorn application form

In this article

Overview

The Bullhorn application form lets candidates apply for a job directly on your website. They fill in their name, email and phone number, upload their CV, and JobRelay sends the application straight into Bullhorn against the right job. There is no need to send candidates off to a separate Bullhorn career portal.

You add the form to your job pages with the [bullhorn_apply_form] shortcode. It is part of the JobRelay Connector plugin and is for sites that receive jobs from Bullhorn through JobRelay.

How it works

  1. A candidate opens a job on your website and fills in the form.
  2. When they click Submit Application, the button is disabled and a “Submitting your application…” message shows, so they don’t send it twice.
  3. Your website checks the details and the CV, then sends the application to Bullhorn’s application API for that job. The application appears in Bullhorn with the source JobRelay Website Application.
  4. The candidate is taken back to the same job page, scrolled to the form, with a message saying whether it worked. When it works, the form is replaced by the message Your application has been successfully submitted.

The CV is saved to your website only for as long as it takes to send it to Bullhorn, and is deleted straight after. Applications are not stored in WordPress.

Before you start

You need:

  • The latest version of the JobRelay Connector plugin, with jobs arriving from Bullhorn.
  • Your Bullhorn public REST cluster number (CLS) and public API token. If you’re not sure where to find these, contact JobRelay support and we’ll help.
  • Access to your site’s wp-config.php file, or a developer or host who can edit it for you.

The cluster number is the number in your Bullhorn public REST address. For example, if the address starts https://public-rest99.bullhornstaffing.com, the cluster number is 99. If you have used Bullhorn’s open source career portal, the same details are in its app.json file: the token is corpToken and the cluster number is swimlane.

Setup guide

Step 1: Add your Bullhorn details to wp-config.php

Open wp-config.php in the root of your WordPress site and add these two lines above the line that says /* That's all, stop editing! */. Replace the values with your own.

define( 'BULLHORN_PUBLIC_CLS', '99' );
define( 'BULLHORN_PUBLIC_TOKEN', 'your-public-api-token' );

Your details are kept in this file, rather than in the plugin settings or the shortcode, so they never appear on your job pages. If either one is missing, the form isn’t shown and a warning appears in its place instead.

Step 2: Add the shortcode to your job pages

Add the shortcode to the template your theme uses for single job pages, so it shows on every job:

[bullhorn_apply_form]
  • Block themes: go to Appearance > Editor > Templates, open the single job template, add a Shortcode block where you want the form and paste the shortcode into it.
  • Classic themes: add <?php echo do_shortcode( '[bullhorn_apply_form]' ); ?> to your single job template, for example single-job_listing.php or single-job.php in your child theme.

On a single job page the form picks up the Bullhorn job ID that JobRelay saved with the job, so you don’t need to tell it which job it’s for.

Step 3: Turn on the form styles (optional)

Go to Settings > JobRelay Settings, tick Enqueue Application Form Styles and save. This adds some simple styling for the fields, the success and error messages, and the loading message. Leave it unticked if your theme styles the form itself.

Step 4: Send a test application

Open a live job on your site, fill in the form with your own details and a test CV, and submit it. You should see the success message, and the application should appear against that job in Bullhorn.

The form fields

All fields are required.

FieldNotes
First NameSent to Bullhorn as the candidate’s first name.
Last NameSent to Bullhorn as the candidate’s last name.
EmailMust be a valid email address.
PhoneAny format.
ResumeThe candidate’s CV. Accepted formats are PDF, DOC, DOCX, RTF and TXT. Bullhorn parses the CV to fill in the candidate record.

The largest CV a candidate can upload is set by your website’s upload limit. You can see it in Media > Add New Media File.

Shortcode options

The shortcode works without any options. You can add these to change how it looks or which job it applies to.

OptionDefaultWhat it does
form_titleNoneA heading shown above the form, for example Apply for this job.
title_heading_levelh2The heading tag used for the form title, for example h3.
submit_labelSubmit ApplicationThe text on the submit button.
filetypespdf,doc,docx,txtThe file types listed in the help text under the CV field. This only changes the text shown. The form always accepts PDF, DOC, DOCX, RTF and TXT.
jobidThe current job’s Bullhorn IDThe Bullhorn job ID to apply for. Only needed if you use the form somewhere other than a single job page.

Examples

Add a title and change the button text:

[bullhorn_apply_form form_title="Apply for this job" title_heading_level="h3" submit_label="Send my application"]

Use the form on a normal page, for one particular Bullhorn job:

[bullhorn_apply_form jobid="12345" form_title="Apply now"]

Messages candidates may see

After the form is sent, the candidate sees one of these messages above the form. Each message is shown once, on the job they applied for.

MessageWhat it means
Your application has been successfully submitted.Bullhorn accepted the application. The form is hidden.
Please upload a valid resume.No CV was attached, or the upload failed. This can happen if the file is bigger than your site’s upload limit.
Invalid resume file format. Please upload a PDF, DOC, DOCX, RTF, or TXT file.The CV was in a format Bullhorn can’t read.
File upload failed: …WordPress couldn’t save the CV, for example because the file type isn’t allowed on your site. The reason is shown after the colon.
Invalid job ID.The form doesn’t know which Bullhorn job it’s for. Check the shortcode is on a single job page that came from Bullhorn, or add the jobid option.
Security check failed.The page was open too long before the form was sent, or a caching plugin served an old copy of the form. Reloading the page and trying again usually fixes it.
Could not contact Bullhorn: …Your website couldn’t reach Bullhorn. The reason is shown after the colon.
Application submission failed (HTTP …).Bullhorn refused the application. Check the cluster number, token and job ID. If WP_DEBUG is on, Bullhorn’s reply is added to the message.

Styling the form

If you’d rather style the form in your theme, these are the main classes to target:

ClassElement
.jobrelay-application__wrapperThe wrapper around the title, messages and form. It also has the ID jobrelay-application__wrapper.
.jobrelay-application-form__titleThe form title.
.jobrelay-application-form--bullhornThe form itself.
.jobrelay-application-form__fieldEach field wrapper. Each one also has a class for its field, such as --first-name, --email or --resume.
.jobrelay-application-form__field-descThe help text under the CV field.
.jobrelay-application__notices--success
.jobrelay-application__notices--error
The success and error messages.
.jobrelay-application-form__loadingThe “Submitting your application…” message.

FAQs

Straight into Bullhorn, against the job the candidate applied for, with the source JobRelay Website Application. Nothing is kept in WordPress, and no email is sent from your website.

Not at the moment. The form sends the fields Bullhorn’s application API accepts: first name, last name, email, phone and CV. Bullhorn reads the rest of the candidate’s details from their CV.

Yes, as long as cached job pages are refreshed at least once a day. The form includes a WordPress security code that expires after a day or so. If your cache keeps pages for longer, candidates may see “Security check failed.” Either shorten the cache time for job pages or exclude them from the cache.

The form only shows once BULLHORN_PUBLIC_CLS and BULLHORN_PUBLIC_TOKEN are both set in wp-config.php. Check both lines are there, are spelt exactly as in step 1, and sit above the “That’s all, stop editing!” line.

Yes, but any application sent from staging goes into your live Bullhorn account, just as it would from your live site. Use your own details for testing, or leave the two lines out of wp-config.php on staging to hide the form there.

Can’t find what you need?

Our integrations team set up every JobRelay site, so they know it inside out. Get in touch and we’ll help.