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:

  1. Select the button and then open the Events page in the Properties pane:
  2. 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.

  3. Double-click on the Checked event to open the Scripts panel.
  4. In this simple example, the Checked/Unchecked state of the Checkbox determines the enabled/disabled state of Button2:

  5. When you Save your changes and Run the form:
  6. Checking and unchecking the Checkbox will enable and disable the button: