SAP Knowledge Base Article - Public

2707588 - Panel has a regular expression for Numbers Only but it is accepting letters in the field - Onboarding

Symptom

Panel has a regular expression for Numbers Only but it is accepting letters in the field

Environment

SAP SuccessFactors Onboarding - All Versions

Reproducing the Issue

  1. Go to Settings -> Panel
  2. Select the affected panel
  3. On the panel field type in any letters
  4. It will accept the value

Cause

No validator added. A custom validator is required

Resolution

  1. Go to Settings -> Panel
  2. Select the affected panel
  3. Click "add" under validators
  4. Select validator "Regular Custom Validator"
  5. Select template "Custom"
  6. In the expression add ^(\(?\+?[0-9]*\)?)?[0-9_\- \(\)]*$
  7. Add a custom error message

Keywords

Panels, RegEx, Regular Expression, Numeric, Numbers Only, Custom Validator , KBA , LOD-SF-OBD-PAN , Panels, Panel Designer , How To

Product

SAP SuccessFactors Onboarding