When rule not executed in local action
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.
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.
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.
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
Was this useful?
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.