BUG #2424
open[SQA] Improve "Create New Customer" Form – Field Validation, Auto-Generated ID, and Address Field Ordering
Description
The "Create New Customer" form needs improvements to enhance data accuracy, ensure proper validation (especially for Bangladesh), and provide a better user experience. The following updates are required:
- Customer ID Auto-Generation
The Customer ID field should be auto-generated by the system.
Format can be sequential or unique (e.g., CUS-YYYYMMDD-XXX or UUID).
The field should be read-only for users.
- Customer Name Validation
The Customer Name field must:
Reject numbers and special characters.
Allow only Bengali or English letters, spaces, and common name characters like apostrophes or hyphens.
Display an appropriate validation message if invalid input is detected.
- Phone Number Validation (Bangladesh Format)
Accept only valid Bangladeshi mobile numbers:
Must be 11 digits starting with 01, or +8801 if international format is supported.
Reject entries with alphabetic characters or incorrect length.
Examples of valid formats:
017XXXXXXXX
+88017XXXXXXXX
- Email Validation
Ensure valid structure (e.g., user@example.com).
Prevent common format issues like multiple @ symbols or missing domain parts.
Should support standard TLDs (.com, .bd, .org, etc.).
- Reorder Address Fields
To follow the standard Bangladeshi address format, reorder the address fields as follows:
Postal Code (first)
City/Town
District
Division
This sequence should be reflected both visually and in the tab order for accessibility.
Files