Description

A form is a collection of input fields, allowing users to store, retrieve, and update data.

Forms may appear either in the main workspace or within other containers, such as Dialog popups, Popovers, Wizards, Filter panes, Details panes and Cards.

In a workspace

In a Dialog popup

Configuration.png

Usage & Behavior

Structure

A form consists of two areas:

The Input Area

The Action Area

Placement and positioning

In most cases, the action area will appear below the form.

In some cases, where a form uses the entire workspace and is shown across multiple containers, the action area may appear at the top of the workspace.

Main workspace - less than two thirds height

Main workspace - more than two thirds height

Popup

Entire workspace - form across multiple containers

Action Area without scroll.pngAction Area Scroll.png

States

Forms have two possible states:

State

Usage

Idle / Saved

Applies when first entering a form or after saving it. In this case, the submit button is disabled.

Edited

Applies after changes are made to a form, but before saving or submitting. In this case:

  • the submit button is enabled (unless there are errors in the form).

  • attempting to leave the form will trigger a confirmation message. See Validation and errors below.

  • changing all fields back to their initial values will not revert the state to Saved.

The Cancel button is always enabled in all states.

Interaction

The submit button

The Cancel button

Validations and errors

Validation triggers

There are two types of validation which may affect a form:

Type

Trigger events

Examples

Notes

Client-side validation

  • Moving focus away from a field.

  • Clicking the submit button on the form.

  • Invalid values.

  • Invalid formats.

  • Blank mandatory fields.

Client-side issues are either resolved immediately (for example, on deleting an invalid character) or when the field loses focus.

Server-side validation

  • Clicking the submit button (or Next button in Wizards).

  • Clicking the Save button of an Inline input.

When logical problems are detected, e.g. trying to create an object with a name that already exists.

In some cases, a Dialog popup may appear with additional instructions required to complete the action.

When validation takes more than a few seconds, a Progress indicator will appear in a modal.

Creating Process.png

Presentation of errors and warnings

Errors and warnings are shown:

While the form contains an error, the submit button will be disabled.

Errors Popover.png

A dedicated message will appear to the left of the action area. It will include:

Error message

Warning message

image-20241013-094024.png

Short form, where necessary:

image-20241013-094202.png
image-20241013-094317.png

Short form, where necessary:

image-20241013-094353.png

Clicking the link opens a Popover, containing additional information. The popover includes:

Examples

image-20241013-094736.pngimage-20240820-095524.png

Leaving an incomplete form

When the user navigates away from a form in the Edited state (after updating one or more fields), or while there are errors on the form:

In case of unsaved changed

In case of form errors

Leave Form 1.pngLeave Form 2.png

Best practices

Use for:

General

Examples in different containers

Main workspace

Widget

Wizard

Details pane

Accessibility compliance

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