Traversing Fields
You can use the Tab key to traverse editable fields in a form. The traversal order is determined by the following (listed in order of precedence, highest-to-lowest):
-
The nextField property of a field. This is set with the nextField argument when the field is created and defines the next field to bring into focus when the
Tabkey is pressed. The nextField property has the highest precedence. -
The tabOrderIsAddOrder argument value. This is set when a form, scroll region, or tab field is created. When set to
t, tabOrderIsAddOrder sets the nextField property on all fields (except those that have the nextField property already set to a non-nilvalue) to the order in which the fields are added to the form. - If nextField is not specified or tabOrderIsAddOrder is not set, then the traversal order is based on the form layout —left-to-right and top-to-bottom— beginning with the field at the top-left corner of the form.
You can use SHIFT+TAB to traverse the fields backwards. Note, however, that traversing backwards might not always be predictable. For example, in cases where two fields point to the same next field, it is difficult to determine the previous field.
Related Topics
Creating Context Menus for Fields
Return to top