Validate US ZIP codes

Created on 24 April 2025, about 21 hours ago

Problem/Motivation

Site owners expect ZIP Codes to be validated, to stop people from entering junk.

Steps to reproduce

Add an address field to an entity. Allow the postal code to be filled in. Select US as the country, enter gibberish in the ZIP code field, submit the form.

Expected behavior:
* The submission fails because the ZIP code does not validate.

Actual behavior:
* The submission succeeds because the ZIP code is not validated.

Proposed resolution

Add at least rudimentary ZIP code validation.
This may require improvements to the Addressing library.

Remaining tasks

Add postal code validation for US addresses.

User interface changes

The ZIP code would be validated for correct syntax when entering a US address.

API changes

TBD

Data model changes

TBD

✨ Feature request
Status

Active

Version

2.1

Component

User interface

Created by

πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024