Select field with two possible value
Option 1
Option 2
Radio button with two possible values
Option 1
Option 2
Checkbox: value either on or off
Checkbox
Input restricted to max 5 characters
Readonly input field
Field 1:
exactly three lowercase characters(^[a-z]{3}$)
abc
Field 2:
exactly three digits(^[0-9]{3}$)
123
Field 3:
letters, numbers, and space only(^[a-zA-Z0-9 ]*$)
abc 123 ABC
Field 4:
enumeration of numbers (^(one|two|three|four|five|six|seven|eight|nine)$)
seven
Field 5:
simple zip code (^\d{5}$)
01101
Field 6:
zip with optional dash four (^\d{5}(-\d{4})?$)
90210-1111
Field 7:
US phone number with or without dashes (^[2-9]\d{2}-?\d{3}-?\d{4}$)
301-604-4882
Submit