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

Condition on action not triggered when a When Rule returns true

SA-27143

Summary



A When Rule is used as a condition to trigger a local action.  The local action does not fire, if the when rule is updated to true - though it will fire after that (as if it's behind one step).


Error Messages



Not Applicable


Steps to Reproduce

Configure a non-action type control (such as text input) to use a Local Action with a When Rule condition.


Root Cause



This combination of configurations is not currently supported.  Since the action markup for the control is generated based on the When Rule's evaluation on section refresh / first load, it is effectivly behind one step in this use case (the When Rule is updated after the action markup is generated).

Resolution



Using a direct property reference, such as "Associated Property" or "Other Property," provides the necessary functionality and is the supported design for this use-case.  

Note: When using "Other Property" the property will need to be referenced as a hidden control in the section, so that it is included on the DOM and correctly triggers change tracking.

Published September 1, 2016 - Updated October 8, 2020

Was this useful?

33% found this useful

Have a question? Get answers now.

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

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