Hi - is it possible to do a ‘refresh’ of an element in a workflow. I have conditionals on two elements (to show one or the other based on underlying data). On a new page, everything works fine (based on conditional, the correct element shows).
However, the underlying data can change via actions in a workflow and it doesn’t seem efficient (or desirable) to have to do an entire page refresh to run the conditional again. Is there anyway to ‘force’ an element’s condition to be evaluated again? Thanks!
Condition are always evaluate if anything that is involved in this condition change. So if this is not updated, your setting may not be correct. Please post some screenshot.
Here are two screenshots.
First shows the workflow that sets the ‘rated_user’ to the Current User.
The second shows a Conditional to see if that ‘rated_user’ matches the Current User.
(there’s a second button that has a Conditional that does the reverse, so one is always showing.
Once a page is refreshed, it all works as should given the Current User but it doesn’t change after the workflow action, only on a page refresh…
If you didn’t make your list static, it should be updated. Maybe you should have a look to be sure nothing create a conflict. What you can do is to use debug_mode and inspect the button of the cell you have clicked on and shouldn’t show.
You can always add another step. Go in Element Action: Clear list.
This will reset the list and should reload data. But you shouldn’t need this. If you can share your app in view mode, maybe we can help you to find what is causing this.
List not static. Looks like it’s all working now. Thanks for your help.
Related Q - when I add ‘Current User’ to ‘rated_user’ list (and no one is logged in), it all works as it should. That non-logged-in user sees the correct button.
When a different logged in user goes to the page, will that work the same as the ‘other’ non-logged-in user, or is each non-logged-in user (from a different browser) treated as a separate user and is added to the list as well?