Do everytime workfklow not triggering as expected

I have a workflow here to show a popup whenever the condition is met:

I tested a couple of hours ago and it worked fine, now it just won’t work.

I’ve troubleshot and found out the data value inside the popup is changing and meets the conditions to trigger by displaying text from the value inside the popup. Though conditions are met, the popup refuses to show.

image

Yet, when refreshing the page, the workflow triggers.

It seems that the “every time” part is not working as expected

try setting an action to reset the group/popup data values when the popup is closed and also reset or remove the values of any associated custom states

The popup loads the one phone of the user marked as primary as the search definition.
The only way to do what you suggest is to do the search again each time a relevant input is changed (we do autosave).
In the end it’s just easier the add the “show popup” action in the workflow of each input change.

Yet, I don’t understand why the “do every time” would work well before (and works well on other pages) but suddenly doesn’t work on this page :thinking:

Because you are not removing the values from the popup when closing the popup and also likely not resetting the custom state values

There are other ways, but you can keep it as you have it

Try the following:

  • Every time the condition is true > Go to page (Current page), [otp=1].
  • Add a condition for every time get data from page url, otp=1 > Show otp popup
  • Whenever user closes the popup > Go to page (Current page), [otp=empty].

This should be a work-around to your issue, understand that dynamic urls stay active even after refreshing, so even if you refresh the page with otp=1, the popup will show up without any user input. This can be easily mitigated with a "on load page, if get data from page url contains otp=1 > go to current page with otp=empty.