SAP Knowledge Base Article - Public

2301036 - Custom Age Validator is not working on a Panel - Onboarding 1.0


  •  A custom validator is configured to check if age is older than 16 in the Date of Birth (dob) field and during testing validation message is not displaying.


  • SAP SuccessFactors Onboarding

Reproducing the Issue

  1. Go to panel that has the custom validator setup. 
  2. Click preview to test for the validator(s). 
  3. No Validation message will appear.


  • In an Onboarding panel with multiple fields that has custom validators configured. All the validations in the panel will not work if one of the custom validator setup is not configured correctly. Thus, error validation message will not show up. 
  • Custom Validator in checking age is incorrectly configured. 


  1. Below is a sample javascript that validates if the age is greater than 16 (Note: key should match your current configuration.)

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;
return true;

2. Check all your custom validator and make sure all of them are correctly configured.


Onboarding 1.0, ONB 1.0, OBD, SuccessFactors, On boarding , KBA , LOD-SF-OBD-PAN , Panels, Panel Designer , Problem


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