2301036 - Custom Validator is not working in Panel Designer - Onboarding

SAP Knowledge Base Article - Public

2301036 - Custom Validator is not working in Panel Designer - Onboarding

Symptom

  • In the Date of Birth field i have custom validator to check for age older than 16, but the error message is not displayed
  • Validation error message is not displayed

Environment

Onboarding

Cause

In the Panel with multiple fields, if one of the custom validator is wrong then none of the validator in that panel will work.

Resolution

Below are the Java Script that validates the age greater than 16

if(context.control.value == '')
return true;
else {

var dob = new Date(Date.parse(context.control.value));
var currentDate = new Date(new Date().setYear(new Date().getFullYear() - 16))

if(dob > currentDate)
return false;
else
return true;
}

Keywords

required validator, Custom Validator, ONB, Error message, , KBA , LOD-SF-OBD , Onboarding , Problem

Product

SAP SuccessFactors Onboarding 1511 ; SAP SuccessFactors Onboarding 1602 ; SAP SuccessFactors Onboarding 1605 ; SuccessFactors Onboarding 1305 ; SuccessFactors Onboarding 1308 ; SuccessFactors Onboarding 1311 ; SuccessFactors Onboarding 1405 ; SuccessFactors Onboarding 1408 ; SuccessFactors Onboarding 1508