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.
In form item types with value pickers 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.
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.
AUTONEXT
is particularly useful with character fields in which the input
data is of a standard 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.
The next field is defined by the field input order, see TABINDEX
.