Skip to end of banner
Go to start of banner

Text Field

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 43 Next »

Description

A text field is a single-line text input control. It allows users to enter a small amount of text or numeric data in one line.

Text Field -  Regular.png

Types

Type

Usage

Basic text field

The most common input field, where users can enter text or numeric data.

Secured text field

Used when text needs to be secured, e.g., password.

Usage & Behavior

General guidelines

Structure

The text field consists of:

  • Preceding label - a meaningful label describing the information the user needs to provide.

  • Input Field.

  • (Optional) Guiding / hint text - a short description of the expected input text, shown within the input field.

States

State

Default

Filled

Regular

Text Field -  Regular.pngText Field - Regular filled.png

Hover

Text Field - Hover.pngText Field - Hover filled.png

Active

Text Field - Active.pngText Field - Active filled.png

Disabled

Text Field - Disabled.pngText Field - Disabled filled.png

Read Only

Text Field - Read only.pngText Field -  Read only filled.png

Error

Text Field - Error.pngText Field - Error filled.png

Warning

Text Field - Warning.pngText Field - Warning filled.png

Focused

Text Field - Focused.pngText Field - Focused filled.png

Focused, Hover

Text Field - Focused hover.pngText Field - Focused hover filled.png

Focused, Active

Text Field - Focused active.pngText Field - Focused active filled.png

Focused, Disabled

Interaction

  • On hover over the text field, the mouse cursor will change to a text cursor.

  • On click:

    • Where no text has been added to the field:

      • a text cursor will appear at the beginning of the text field.

      • the hint text will disappear.

    • Where text already exists in the field:

      • a text cursor will appear in the position where the user clicks.

      • double-clicking a word inside the text field will select that word.

      • triple-clicking the text field will select all of the text.

  • As text is entered it will appear from the left-hand side.

  • Once the cursor reaches the end of the field, it will stop and new characters will be added at that point. The start of the text string will disappear on the left-hand side of the field.

  • If a character limit has been set, reaching the limit will prevent the user from entering any more characters.

  • When the user clicks away and the field becomes inactive:

    • if the text string exceeds the width of the field, the start of the text string will come back into view.

    • if no text has been added the hint text will reappear.

Validations and errors

Please refer to the Field Validation page for more information.

A text field with a warning will have an orange border and a warning icon, as shown below:

Warning hint text.png

A text field with an error will have a red border and an error icon, as shown below:

Error hint text.png

The orange or red border will be removed when the content is updated and becomes valid.

Additional Inputs

  • In case of a numeric text field (e.g., extension number), users will not be able to enter any character other than numbers.

  • In case of secured text field (e.g., password):

    • When typing, characters are masked.

    • The field can contain a show/hide password button.

    • In case Caps lock or Num lock are on, a corresponding tooltip will appear (see Common Messages Repository).

Text Field - Password.png

Best practices

Use:

  • where the user needs to enter a short, single-line text in plain text, such as a password, URL, phone number or email address.

Don’t use if:

General

  • Always provide a clear and meaningful preceding Label for any input field.

  • Where appropriate, help users by providing a guiding/hint text describing the expected input text.

  • When the user is filling in a secured text field, allow them to temporarily view the text.

Accessibility compliance

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

Focus management

Keyboard

Description

Tab

Navigates to the next component.

Shift + Tab

Navigates to the previous component.

Space

Acts as within a text input.

Enter

Acts as within a text input.

Esc

N/A

Arrows

Acts as within a text input.

Mouse

Description

Right click

Set Focus state on component

Responsive design

Verint products should support all devices down to the common tablet size (960px width). For general guidelines, see Fundamentals - Responsive design.

  • Where the available space is narrow:

    • the width of the text field should dynamically respond to its container, taking up 100% of the available space.

    • the label for the text area should be shown above the field, rather than to the left.

Design

Zeplin link

Screen thumbnail

https://zpl.io/aMW4dR2

Verint LUX Text Field.png

Code





  • No labels