auto_stories Knowledge Base chevron_right Actions chevron_right Article

Focus Itemv5

The Focus Item action sets the input focus to a specified form control. It is commonly used to move the cursor to a particular field after an action is executed, such as when a button is clicked.

Properties

Description:
Enter a description for the action.

Heading:
Specifies the name displayed in the action list when the action is added as a Form Action.

Value Area:
Specifies the form control that will receive the input focus when the action is executed.

Run Condition:
If the SQL query entered in this field returns '0', the action will not be executed.

Request Confirmation:
Determines whether the user is prompted for confirmation before the action is executed. If enabled, the Confirmation Message property becomes available, allowing you to specify the message displayed to the user.

Example Usage

Assume your form contains a Button and two Text Box controls.

To automatically move the cursor to the Name text box when the button is clicked, assign the Focus Item action to the button's When Clicked event. In the Value Area property, select the Name text box as the target control.

When the button is clicked, the input focus is automatically moved to the Name field, allowing the user to begin typing immediately.