AUTONEXT attribute

The AUTONEXT attribute forces the focus to automatically leave the current field when completed.

Syntax

AUTONEXT

Usage

When using the AUTONEXT attribute in a form item type that has a text editor, the focus goes automatically to the next field, when the user enters a character that completely fills the field. The maximum number of characters is defined by the field input length.

AUTONEXT is useful with character fields in which the input data is of a fixed length, such as postal codes. It is also useful if a character field has a length of 1, as only one keystroke is required to enter data and move to the next field.

When the form item type has a value picker such as calendars or drop down lists, the focus also goes automatically to the next field, when a value is selected in the value picker.

When AUTONEXT is used for a COMBOBOX field, the focus goes automatically to the next input field, when selecting an item in the combobox drop-down list.

When AUTONEXT is used for an EDIT or BUTTONEDIT with a COMPLETER attribute, the focus goes automatically to the next input field, when selecting an item from the completion list.

Note: If the value entered in the field does not meet the requirements of other field attributes like INCLUDE, the focus stays in the current field, and an error message displays.

The next field is defined by the field input order, see TABINDEX.