Form Field Validation Checklist
Every input field must follow these validation rules and UX standards. Use this whenever you build any form field — frontend and backend must both validate.
Back to Frontend Checklist
0/0 completed
Contents
| Field Type | Jump To |
|---|---|
| Text | Text Field |
| Email Field | |
| Password | Password Field |
| Confirm Password | Confirm Password |
| Phone Number | Phone Number |
| Number / Price / Date | Numeric and Date Fields |
| Select / Multi-Select / Checkbox / Radio | Choice Fields |
| Textarea / Search / OTP | Special Inputs |
| File / Image Upload | Upload Fields |
| Percentage / Color Picker | Utility Fields |
Text Field
Actual Text Field Example
Storage: trimmed string, no leading or trailing spaces.
| Error State | Message |
|---|---|
| Empty | [Field name] is required. |
| Too short | [Field name] must be at least 2 characters. |
| Too long | [Field name] must be under 100 characters. |
Email Field
Actual Email Field Example
Lowercase before storage and validate on backend too.
Password Field
Actual Password Example
Type in the field to see the strength update.
Confirm Password
Actual Confirm Password Example
Confirm password on blur and on submit.
Phone Number Field
Actual Phone Field Example
Store in E.164 format:
+919876543210.Number, Price, and Date Fields
Integer / Quantity
Price / Currency
Date
Date + Time
Select, Multi-Select, Checkbox, and Radio
Multi-Select
Selections must remain visible and removable.
Checkbox and Radio
Textarea, Search / Autocomplete, and OTP
Search / Autocomplete
Searching...
Results: Marketing Plan, Market Research, Remarketing Dashboard
OTP / Verification Code
Auto-advance is helpful, but paste support is essential.
File and Image Upload Fields
Actual Upload Example
Drop a file here or choose one
Accepted: JPG, PNG, PDF up to 5 MB.
No file selected
Percentage and Color Picker
Percentage
Validate
0-100 only.Color Picker
Hex value should stay in sync with the visual picker.