BUG #2416
open[SQA] Auto-Generate User ID and Improve Validation for Name, Email, and Phone Fields in "Create New User" Form
Description
The "Create New User" form requires enhancements to improve data quality and user experience. Specifically:
- Auto-Generate User ID:
The User ID field should be automatically generated (e.g., using a UUID or auto-increment logic).
This ensures uniqueness and prevents human error during manual input.
- Name Field Validation:
The Name field currently accepts numeric values, which is not appropriate.
Validation should:
Prevent fully numeric entries (e.g., "1234").
Allow alphabetic characters, spaces, and common symbols (e.g., hyphens, apostrophes).
Provide a clear error message if invalid input is detected.
- Email Field Validation:
Ensure only correctly formatted email addresses are accepted.
Use standard regex to validate structure (e.g., user@example.com).
Reject malformed addresses and display helpful feedback.
- Phone Number Validation:
Accept only valid phone number formats.
Should include:
Length restrictions (e.g., minimum 10 digits).
Allow country codes if needed (e.g., +1, +91).
Reject alphabetic or special characters (except + if used).
Files