SAP Knowledge Base Article - Public

2660351 - Postal Code or Zip code validation - Regular Expression

Symptom

How to Validate Postal Code / Zip in panels

Reproducing the Issue

In Canada forms , Postal code /Zip are shown in ANA NAN format i.e. 7 chars including 1 space (A is alphabet and N is numeric value)
if above format is not provided , form will not populate value correctly so, it is necessary to capture the value in above format

Cause

Configuration need to be corrected.

Resolution

To populate Postal Code or Zip in form,  key : Zip must be configured
Max Length of the field can be set as 7
Regular Expressoin Validator => custom validator need to be added on field.
Expression is :  ^[A-Za-z]\d[A-Za-z] \d[A-Za-z]\d$

Save the panel and test the functionality.

Keywords

Zip ; Postal Code ; Regular expression ; Regex for postal code ; canada form , KBA , LOD-SF-OBD-PAN , Panels, Panel Designer , Problem

Product

SAP SuccessFactors Onboarding 1511 ; SAP SuccessFactors Onboarding 1602 ; SAP SuccessFactors Onboarding 1605 ; SAP SuccessFactors Onboarding 1608 ; SAP SuccessFactors Onboarding 1611 ; SAP SuccessFactors Onboarding 1702 ; SAP SuccessFactors Onboarding 1705 ; SAP SuccessFactors Onboarding 1708 ; SAP SuccessFactors Onboarding 1711 ; SAP SuccessFactors Onboarding 1802 ; SAP SuccessFactors Onboarding 1805 ; SUCCESSFACTORS ONBOARDING 1808 ; SuccessFactors Onboarding 1305 ; SuccessFactors Onboarding 1308 ; SuccessFactors Onboarding 1311 ; SuccessFactors Onboarding 1402 ; SuccessFactors Onboarding 1405 ; SuccessFactors Onboarding 1408 ; SuccessFactors Onboarding 1411 ; SuccessFactors Onboarding 1502 ; SuccessFactors Onboarding 1505 ; SuccessFactors Onboarding 1508