Tonic HQ
Building your staffing business through process and technology

Bullhorn Webinar: Field Interactions

Bullhorn Field Interactions

 

Please note that you may need to make small modifications in order for this exact code to work properly for your instance. For instance, your values may not be the same, or the fields you're using.

Also note that you may need to have the Field Interactions entitlement enabled for your Admin User in order to install these items.

While you are free to use this code, it is provided "As Is", without warranty of any kind, under the MIT License. See below for full license information.

Feel free to contact us for assistance.

MIT-license.png
 
 
 
Candidate.png

Candidate: Source Details

Used to display and/or require additional details when certain Candidate Sources are selected. When "Referral" is selected it will show both fields to enter who the referring person was. When "Other" is selected, it will show and require "Source Details".

// Install on Source for Candidate
// Install on Init and On Change

let activeValue = API.getActiveValue();
switch (activeValue) {
  case 'Referral':
    API.show('referredByPerson', true);
    API.show('referredBy', true);
    API.hide('customText5');
    API.setRequired('customText5', false);
    break;
  case 'Other':
    API.show('customText5');
    API.setRequired('customText5', true);
    API.hide('referredByPerson');
    API.setRequired('referredByPerson', false);
    API.hide('referredBy');
    API.setRequired('referredBy', false);
    break;
  default:
    API.hide('referredByPerson');
    API.setRequired('referredByPerson', false);
    API.hide('referredBy');
    API.setRequired('referredBy', false);
    API.hide('customText5');
    API.setRequired('customText5', false);
}

Candidate: Completed Reference

Used to require the User that completed the Reference, as well as the Date when the Reference is set to a "Completed" Status.

// Install on Status for Candidate Reference
// Run on Init and On Change

let activeValue = API.getActiveValue();
if (activeValue === 'Completed - Positive' || activeValue ==='Completed - Negative') {
    API.show('customDate1');
    API.show('customText1');
    API.setRequired('customDate1', true)
    API.setRequired('customText1', true)
} else {
    API.hide('customDate1');
    API.hide('customText1');
    API.setRequired('customDate1', false)
    API.setRequired('customText1', false)
}
 
Jobs.png

Job: Reason Closed

Used to display and require a field for the reason closed when a Job is moved to a "Lost" Status.

// Install on Status for all active Job Tracks 
// Run on Init and On Change

let activeValue = API.getActiveValue();
if (activeValue === 'Lost') {
    API.setRequired('reasonClosed', true);
    API.show('reasonClosed');
} else {
    API.hide('reasonClosed');
}
 
Placement.png

Placement: End Reason

Used to display and require a field for the reason a Placement ended when moved to a "Terminated" Status.

// Install on Status for all active Placement Tracks
// Run on Init and On Change

let activeValue = API.getActiveValue();
if (activeValue === 'Terminated') {
    API.setRequired('terminationReason', true);
    API.show('terminationReason');
} else {
    API.hide('terminationReason');
}

MIT License

Copyright (c) 2019 Tonic HQ, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.