VBS validation rule on Local Global Transfer
We are trying build a validation rule to fire when the "Who's the new Legal Employer?" from When and why and the delivered "Legal Employers That Share This Department" extensible flexfield (EFF) are not equal.
"Who's the new Legal Employer?" != "Legal Employers That Share This Department"
The expression we've built is returning all results as True and thus displaying the validation warning message even when the result should be false.
/* eslint-disable dot-notation */
define([], () => {
'use strict';
/**
*
- @param {object} context
- @return {boolean}
*/
function runCondition(context) {
const { $componentContext, $fields, $modules, $user, $value } = context;
if ($componentContext.LegalEmployer !== $fields['oracle-eflexfield-DEPARTMENT'].DEPARTMENT_PAGE.ORA_PER_LEGAL_EMP_ASSOC_DEPT.oraPerLegalEmployer.$value()) {