You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Position Validation while creating Job requisition

edited Oct 1, 2025 7:51AM in Recruiting, Opportunity Marketplace 4 comments

Summary:

Position Validation Rule to check if the position has vacancy for the number of Openings selected.

Content (please ensure you mask any confidential information):

Oracle 25C ORC doc shows that a similar validation is possible.



Working Validation Rule:
This validation checks if the position has vacancy for the number of Openings selected.

____________


define([], () => {
'use strict';

/**
*
* @param {object} context
* @return {boolean}
*/
function runCondition(context) {
const { $componentContext, $fields, $modules, $user } = context;

const ActiveIncumbents = $fields.RecruitingJobRequisition.position.$value()[0].activeIncumbents.length;

const HeadCount = $fields.RecruitingJobRequisition.position.$value()[0].HeadCount;

const VacantCount = HeadCount - ActiveIncumbents;

const NumberOfOpenings = Number($fields.RecruitingJobRequisition.NumberOfOpenings.$value() || 0);

console.log("ActiveIncumbents:" + ActiveIncumbents);

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!