Trigger an action from a CheckBox selection
This exercise describes how to use a Checked event to trigger an action when a Checkbox is checked or unchecked.
To trigger an action on the selection of a CheckBox:
- Select the button and then open the Events page in the Properties pane:
- Double-click on the Checked event to open the Scripts panel.
- When you Save your changes and Run the form:
Events define the interaction between the user and a control. The mouse can be used, for example, to click a button or give focus to a button. Scripts can be associated with an event to trigger other events or actions.
In this simple example, the Checked/Unchecked state of the Checkbox determines the enabled/disabled state of Button2:
Checking and unchecking the Checkbox will enable and disable the button: