SAP Knowledge Base Article - Public

3070281 - How to Add Expression Validator - Onboarding 1.0

Symptom

How to add an expression validator to accept only 9 numbers and not any other characters.

Environment

SAP SuccessFactors Onboarding 1.0

Resolution

  1. Go to Settings -> Panel
  2. Select the panel
  3. Click "add" under validators
  4. Select validator "Regular Custom Validator"
  5. Select template "Custom"
  6. In the expression add ^\d\{9\}$
  7. Add a custom error message if necessary.

To confirm that your expression is working, you can test in Regex101

Note: In case customer wants to accept less than 9 digits but no more than 9 you can use the expression ^\d{0,9}$, where 0 determine the minimum numbers accepted and 9 determine the maximum numbers accepted.

Keywords

ONB, Onboarding, Validator, Expression, 9 digits, Limit, 9 numbers, Regex101, 9, Validation, Digit, Regular, Panel, Custom , KBA , LOD-SF-OBD , Onboarding , How To

Product

SAP SuccessFactors Onboarding all versions