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