Support Article
Conditional local action comparison doesn't update
SA-29961
Summary
A conditional local action which compares the number of results on a clipboard page (set in the same Action Set) fires based only on the first evaluation of the condition, regardless of any updates to the number of results.
Error Messages
Not Applicable
Steps to Reproduce
- Add a text input to a section
- On-change of that text input, call an activity that returns some results to a clipboard page
- In the same On-change event, call a local action which has a condition that depends on the update of the clipboard page in Step 2
- At run time, first enter a value into the text input that would cause the condition to evaluate to "true" (in this case, a value that will match more than one employee name)
- After dismissing the overlay that correctly shows, replace the value with one that will only match one name - the overlay will still display as if the condition were still "true"
Root Cause
This is not a supported configuration of the conditions available on actions.
Resolution
The explanation for this is that the data-change meta-data on the control can only update if the DOM is refreshed (for example, with a section-refresh or post-value) and cannot update correctly in the middle of the execution of an Action Set
.
If a section-refresh or post-value is added the data-change condition is updated correctly, but this interferes with the subsequent display of the overlay.
Published November 13, 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.