Description

Field Validations are a way of making the user understand a mistake, and how to correct it.

Types

Type

Usage

Image

  Field validation error

Alerting the user on an action that will not allow them to complete the task.

  Field validation warning

Alerting the user on an action that might contain a mistake or a non-fatal error.

Usage & Behaviour

Structure

A validation field consists of:

Examples:

Components


Error

Warning

Text Field

Text Area

Drop-down Menu

Combo Box

Numeric Stepper

Date Picker

Time Picker

Search Field

NA

Switches

NA

Slider

NA

Single check box

NA

Check box group

Grid table cell

Tabs

Call To Action with short text


(warning) on Error, the button is disabled

Call To Action with mixed errors

(warning) Error takes priority


Call to action with long text.

(warning) Pop-up size might need to expand in height

Text position

Content

Rephrasing examples (taken from Verint's Suite):

Before

After

Percentage must be an integer

Please enter only numbers (e.g 48)

Max number of bids allowed (8) for this auction exceeded

You have reached (11) the maximum bids allowed (8) for this auction. Please remove 3 bids.

Not a valid number, please enter length in minutes

Please enter length in minutes (e.g. 30)

Invalid selection for employees - single or group

You can select a single employee as well as a single group or organization (not both)

The form has errors

Please complete all mandatory fields

Internal Logic

All input fields will display the value entered by the user. If the input is invalid, an error or warning message will be displayed. Prevention of input is not allowed (e.g. not displaying characters in the field as they’re entered).

Errors and warnings can be trigger by 3 types of action:

Autocorrect. Some cases require an automatic correction of the invalid input.

Default validation

Interaction

Validation tooltips

Tooltips positioning examples:

Content

Examples

Comments

1 or more rows of text, to the right of the warning or error icon


Partial coverage of control

User can still click the control

Left position


Best Practices

Use field validations for any user input fields.

Accessibility Compliance

Unless otherwise specified, see our general compliance information in Fundamentals - Accessibility.

Design

Zeplin link

Screen thumbnail

https://app.zeplin.io/project/5970b366bee38cf87b2de932/screen/5baca0fa7044c49e813fe220

https://app.zeplin.io/project/5970b366bee38cf87b2de932/screen/5baca11066034667cc35f576

Code

<<a box containing the code - discuss with Femi>>