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

Conditions on action set are not working as expected



User configured a Submit button with event onclick and below actions:
  • Refresh Section in which an Activity is called and a property value is set
  • Add Work with a When condition using above property

At run time, "Add Work " is triggered irrespective of the When condition.

Error Messages

No Error message.

Steps to Reproduce

  1. Configure a button with action "Add Work"
  2. Apply When condition in action
  3. Run portal and click button
  4. "Add Work" should not trigger if When condition fails

Root Cause

The explanation for this is that the data-click/data-change meta-data on the control can only update if the DOM is refreshed (for example, with a section-refresh or post-value) and cannot update correctly in the middle of the execution of an Action Set.


Place the property which is used in When condition, in the UI so that it is available in DOM at run time. Make it hidden.

As the property is present when the first action (Refresh) is performed and as the property is changed, DOM gets re-generated and the When condition gets re-calculated based on the property which is present in DOM.
Suggest Edit

Published September 21, 2017 - Updated October 8, 2020

Did you find this content helpful? Yes No

0% 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