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.

Pega GenAI Athena

Let’s get started! 
Ask me a question or choose a helpful suggestion to start chatting. Keep in mind that I’m always learning, so feel free to give me feedback too!
Remember to avoid sharing personal or sensitive information in your questions, or rely solely on my answers for important decisions.
By chatting with me, you agree to our terms and privacy policy.

Did you find this content helpful?

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