Skip to content

Commit

Permalink
Merge branch 'feature-VALIDATION-6_requiredifotherfieldmatchsystemloo…
Browse files Browse the repository at this point in the history
…kup-missing-clientside-form-validation' into hotfix-1.2.2
  • Loading branch information
DominicWatson committed Jul 15, 2024
2 parents 0e89f3b + b86675e commit ea3ab5b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion services/validation/ValidationExtrasValidators.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ component {

return !( listFindNoCase( lookupValue, otherFieldValue ) && !len( trim( value ) ) );
}

public string function requiredIfOtherFieldMatchSystemLookup_js() {
return "function( value, el, params ) { return true; }";
}

public boolean function requiredIfOtherFieldInValues( required string fieldName, any value="", required struct data, required string otherField, required string otherFieldValues ) validatorMessage="cms:validation.conditional.required.default" {

Expand Down

0 comments on commit ea3ab5b

Please sign in to comment.