...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
Table of Contents | ||||
---|---|---|---|---|
|
Description
Field Validations are a way of talking to our users. It is designed to make the user understand a mistake and the ways to correct it.
...
When starting to edit a field with a validation indication on it, the current indication will be hidden (i.e. it will be treated as if the user had edited the field for the 1st time).
If the user had entered a form/page/screen for the first time (fields are empty), logical validation should not be enabled. However, syntax validation should be enabled.
In cases where the user enters a page that already had input, the warning validation should be displayed (e.g. the user enters a page already edited with warnings in it).
Structure
The field validation consists of:
Color frame or & a Small icon on the top right corner - marks the validation type
A validation tooltip message appears upon hover of the validated field/component
A descriptive message next to the submit button
Error messages have a higher priority than a warning. In case the error was fixed, the warning validation should be presented.
In some cases of limited space or a short form, no descriptive message will appear
Examples:
Text position:
Text position can be either near the CTA (right-aligned) or at the beginning of the row (left-aligned) according to size and available width
See examples:
...
2 options for the content of the error message:
Generic
The content of the message is written in advance and there is no need to refer to the specific text that the user typed, for EX: "not a valid zip code"Input based (
Preferred option where applicable)
The content of the message can dynamically change based on the input of the user, use it to clarify to the user where the error is coming from.
Some examples:Invalid input → zip code cannot contain the special character: "%"
You cannot book this flight, please select another destination or date → Direct flights to Dublin are only available in August. Please select another destination or date
For complicated fields, an example in the text of the tooltip can help
Try to avoid negative words
(e.g. "Password does not meet requirements" or "Invalid Password" → could be turned into→ "Password must contain 8 alphanumeric characters")
Accessibility compliance
...