Project

General

Profile

Actions

BUG #2728

open

[SQA] Restrict Postal Code Field to Numbers Only

Added by Md. Abdul Hamid 9 months ago.

Status:
Pending
Priority:
Low
Assignee:
-
Category:
-
Target version:
-
Start date:
07/24/2025
Due date:
% Done:

0%

Estimated time:

Description

Problem

The Postal Code field currently allows users to input letters and special characters, leading to invalid or inconsistent data.

Expected Behavior

The Postal Code field should accept only numeric values (e.g., 1216, 4000).

Requirements

  • Only digits (0–9) are allowed
  • Disallow:
    • Alphabetic characters (A–Z, a–z)
    • Special characters (!, @, #, etc.)
    • Whitespace
  • Apply validation on both:
    • Client-side (HTML/JavaScript)
    • Server-side (backend/API)

Acceptance Criteria

  • User cannot type non-numeric characters into the field
  • Form submission is blocked with invalid input
  • Clear validation error shown:

    "Postal Code must contain numbers only."

Notes

  • Use <input type="number"> where applicable
  • Ensure backend also enforces numeric-only input

No data to display

Actions

Also available in: Atom PDF