Support Article
When rule not executed in local action
SA-40939
Summary
A Local action configured to be executed on click of a button has a When rule associated.
The When rule is not executed when the button is clicked.
Error Messages
Not Applicable
Steps to Reproduce
- Add a button on a section.
- Define a local action triggered by click event
- Add a When rule to the local action above.
- Observe that the When rule is not evaluated on button click.
Root Cause
When rule associated to actions are meant to show the action depending on a condition.
As such the LocalAction is rendered based on the When rule evaluation.
At the time of running of the action, the markup already got generated and thus the When rule is not executed.
Resolution
This is the expected behavior.
The When rule has to be moved to the target activity to achieve the desired result.
Published October 31, 2017 - 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.