Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

When Rule not working as expected in the action set



Modal dialog is launched only on the second click event of a link. The When rule configured on the condition of an action works only after the second click event of the control.

Error Messages

Not Applicable

Steps to Reproduce

  1. Configure a link in a section.
  2. Add an event-action set on the click of the link.
  3. Add the first action to the refresh section with a data transform to set some properties.
  4. Add the second event to launch the modal dialog with the When condition based on the values set on the previous action.

Root Cause

This behavior is as per Pega product design.
A When rule evaluates on the value set in the same action set (previous action of the same action set). Hence, the required results display in the second click. The data-change on the control can only update if the Document Object Model (DOM) is refreshed. It cannot update correctly in the middle of the Action Set execution.


Perform the following local-change:
  1. Configure the modal section in another dynamic layout of section where the link is clicked.
  2. Provide a Visibility conditional expression or When rule as required for the dynamic layout.
Suggest Edit

Published February 20, 2019 - Updated October 8, 2020

Did you find this content helpful? Yes No

25% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

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

Pega Community 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
Contact us