Workflow question (var not saved on navigation)

I try to understand why this doesn’t work.

I initiate some workflow on one page, then user should be redirected to another page and modal should be shown there (in any other cases var for modal should not persist on navigation, modal should be hidden)

In my workflow I add redirect to page first THEN change var value. I expect that this will work. But actually it doesn’t work.

But i checked var value while testing workflow, once its redirected var become TRUE but immediately changed to FALSE (even my workflow set it to TRUE after redirection)

Can you clarify is this correct behaviour or workflow bug? How to overcome that?

Nothing should be put after a change page. Its a current limitation!

What you can do instead is move your change var before your navigation. If you have an issue with that, you can use 2 variables, one to store the info the modal will need to be toggle (persist on nav), and one for the toggle itself (not persist).

So in this workflow you toggle prepareShowModal to true.

And in the on Page Load workflow of the next page you toggle the showModal to true if prepareShowModal is true for example. Hope it help you :slight_smile:

2 Likes