-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
Description
Example: confirm password, confirm email
Use custom validation. Value must exactly match value of previous field.
Note that the only validity constraint should be the 'confirmation' check.
e.g. If field A is type="email", the confirmation field B should be type="text" and not email.
If the confirmation field is not @required then it may be blank and will be valid.
Confirmation validation should be applied when both fields A and B have values. If only one field has a value, no validation is performed. This is to prevent users from being informed of errors (e.g. passwords do not match) before they even have a chance to type their input!
Blank fields will be handled by required validation, not confirmation validation.