Add a Set Focus action
In a form with several controls, the focus typically moves from one control to the next in a sequential manner. Use the Set Focus action to set the focus to directly shift on a specific control.
Example
In a Credit Check form for a loan applicant, two sections of details are submitted to evaluate credit worthiness of the applicant:
- Personal details such as Name, Surname, Date of Birth, and Age
- Income details such as Monthly income, Monthly Expenses, and Repayment Record (on other loans)
The Submit button is configured with two actions:
-
DB Query to add the applicant's personal details to the database as a record
-
Set Focus to shift focus to the Income field
Once the personal details of the applicant are submitted, the focus automatically shifts to the Monthly Income field in the Other Details section.
The Set Focus action can only be configured for the following controls:
-
Text box
-
Drop-down
-
Calendar
-
Radio button
-
Check box
-
Table
-
Button
This control is only available for Desktop forms.
- On the Form Modeling bar, click Actions.
- On the Actions page, click Add .
- On the Type list, select Set Focus.
- Enter a Name and Description for the action.
- Optionally, configure a unique action for each language separately. See Configure multilingual actions for a form or control for more information.
-
In the
Field box,
consume the field on which to set the focus.
Focus can only be set to one field.
-
Click
OK.
The newly created action is added to the table.
- Click Save.
-
Associate the action with the control to trigger this action. To
call the Set Focus action upon form load, associate the action with the form.
See
Associate an action with a form or
control for more information.
When this action is triggered, the focus is shown on the configured field.