Add Events and Actions to Your Widgets

About this task

Note: Refer to Events and Actions for a list of available events and actions. Not all widgets support events and not all events support all actions.

To add an event and associated action to your app:

Procedure

  1. In the Canvas, select the widget where you want to apply an event.
    Ensure the widget supports adding events.
  2. In the Widget Configuration panel on the right, switch to the Events tab.
    Events tab in Widget configuration panel
  3. Choose an event from the Events dropdown list.
  4. Click Add beside Actions to open the Add Action dialog box and select an action from the list.
  5. Enter any additional information such as phone number or app page location or other and click Add.
    Note: The Run JavaScript and Run Blockly actions are more complex than your average action.
  6. Optional: Add more actions to the event.
    You can add several actions to a single event.
    1. Click Add again to reopen the Add Action dialog box to select another action.
    2. Configure the action and save it to the event.
    3. Drag the actions into the order you want them to occur.
      For example, on an OnClick event for a button widget, you might want to add a Submit, a Sync and, a Reset action. You can choose the order in which they occur.
  7. Click Save once you are satisfied with your events and actions.