Skip to main content

Adding actions to a control

Pega Community logo

Note: The following content, referenced from Pega Community, is included here to help you better achieve the module learning objectives.

Determine how a control behaves when the user interacts with it. By creating action sets, you can link a specific user behavior (an event) to a desired outcome of that behavior (action).

For example, you can specify that clicking an 'Add to cart' button (event) refreshes the cart in an online shop (action). You can define many events and actions in an action set, and you can create multiple action sets for a single control. For each action set, the system executes the actions in the order in which they are listed.

Before you begin: Create or identify a control to which you want to add an action. For more information, see Adding controls.
  1. Open the view that you want to edit.

    For more information, see Accessing views in your application.
  2. In the configuration pane on the right side of the window, hover over the control, and then click the Edit icon.

  3. In the configuration pane, click Add action sets.

  4. In the action set overlay, click Create an action set.

    Result: A table with a new action set appears.
  5. In the action set table, click Add an event, and then select the user behavior that triggers the action set.

    For example: To create a button that you can click to refresh a section, select Click as the event.
  6. In the action set table, click Add an action, and then select the action that the user triggers when interacting with the control.

    For example: To assign a refresh action to your button, click Display: Refresh.
  7. If the action that you select requires additional configuration, complete the configuration form.

    For example: To configure a button that refreshes the current section, in the Target list, select Section.
  8. To define another action set for the selected element, click Add another action set.

  9. To remove an action set, click Delete action set.

  10. Save the form by clicking OK.

Note: If you want the action set to be active only in certain circumstances, add a condition to the action set. For more information, see Adding conditions to an action set.

If you are having problems with your training, please review the Pega Academy Support FAQs.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Academy has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice