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.
0% found this useful