Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents
stylesquare

...

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

...

Types

Type

Usage

Image

Image Modified  Field validation error

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

Image Modified

Image Modified  Field validation warning

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

Image Modified

Usage & Behavior

Structure

A validation field consists of:

  • Color frame with a small icon on the top-right corner. This marks the validation type.

  • A validation Tooltip message, which appears on hover over the validated field.

  • A descriptive message next to the action buttons:

    • Error messages have a higher priority than warning messages. When errors are fixed, the warning validation should then be shown.

    • Where there is limited space or a short form, no descriptive message will appear.

Examples:

Components


Error

Warning

Text Field

Image ModifiedImage ModifiedImage Modified

Text Area

Image ModifiedImage ModifiedImage Modified

Drop-down Menu

Image ModifiedImage ModifiedImage Modified

Combo Box

Image ModifiedImage ModifiedImage Modified

Numeric Stepper

Image ModifiedImage ModifiedImage Modified

Date Picker

Image ModifiedImage ModifiedImage Modified

Time Picker

Image ModifiedImage ModifiedImage Modified

Search Field

Image Modified

NA

Image Modified

Switches

Image Modified

NA

Image Modified

Slider

Image Modified

NA

Image Modified

Single Checkbox

Image Modified

NA

Image Modified

Checkbox or Radio Button group

Image ModifiedImage ModifiedImage Modified

Spreadsheet Tables cell

Image ModifiedImage ModifiedImage Modified

Tabs

Image ModifiedImage ModifiedImage Modified

Examples in context:

Call To Action with short text.

Image ModifiedImage Modified

Call To Action with mixed errors.

Error takes priority.

Image Modified

Call to action with long text.

Pop-up size might need to expand in height.

Image Modified

  • Unlike Errors, the Warning fields can appear on top of controls which do not have a text field, since a warning can appear when there is a conflict between two controls.

...

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 a warning message will be displayed.

  • Prevention of input is not allowed (e.g. not displaying characters in the field as they’re entered).

  • On Error, the button form Apply/Save button is disabled

...

Tooltips positioning examples on hover:

Content

Examples

Comments

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

Image Modified


Partial coverage of control

Image Modified

User can still click the control

Left position

Image Modified


Best Practices

  • Use field validations for any user input fields.

  • Specify why the field information has not been accepted. Your validation messages should tell users exactly why their information got rejected or may have some risk, and how it can be fixed.

  • If the values entered may impact some other part of the system, briefly explain what may be impacted.

  • Keep the text short!

  • For complicated fields, using an example in the tooltip message can help.

  • Try to avoid negative words. For example: Rather than Password does not meet requirements or Invalid Password use → Password must contain 8 alphanumeric characters.

  • Additional examples to avoid:

    • Oops. Oops, something wasn’t right.

    • Error. This form has errors.

    • Failed. Form submission failed!

    • Problem. There was a problem creating your account.

    • Invalid. Oops, Something has gone wrong.

    • Prohibited. 3 errors prohibited this user from being saved.

...

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

Design

Zeplin link

Screen thumbnail

https://zpl.io/2Ee38xv

Image Modified

https://zpl.io/25rljxj

Image Modified