Validation Types
Validation Modes Demo
Experience how different validation modes affect user experience. Try typing in each field to see when validation occurs.
onChange Mode
Validates on every keystroke
Error appears instantly as you type
onBlur Mode
Validates when you leave the field
Error appears after you leave the field
onSubmit Mode (Default)
Validates only when you click submit
Error appears only after clicking submit
onTouched Mode
Validates on blur, then on every change
First validation on blur, then real-time
| Mode | When Validation Occurs | Best For |
|---|---|---|
| onChange | Every keystroke | Real-time feedback (e.g., password strength) |
| onBlur | When leaving the field | Less intrusive validation (recommended for most cases) |
| onSubmit | When form is submitted | Simple forms, minimal interruption |
| onTouched | First blur, then every change | Balance between UX and feedback |
Registration Form
Personal Information
Please provide your basic information
Your full name as it appears on official documents
This field is required
Must be at least 8 characters with uppercase, lowercase, and numbers
Profile Details
Tell us more about yourself
Select your date of birth
You must be at least 18 years old to register
Your country of residence
Choose your preferred communication language
Brief description about yourself (0/500 characters)
Preferences
Customize your experience
Newsletter Topics
Choose the topics you want to receive updates about
Communication Settings
Manage your notification preferences
Account Type
Choose the plan that best fits your needs