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
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.