Set variable value upon page switch not working

Hi all,

I’ve configured a case for a button to do two things:

  1. Open another page
  2. Set a certain variable value to “1”

However, the variable value is not being updated (it remains 0). If I use another button on the page to update variable (one that doesn’t trigger a page switch), it works fine. This leads me to believe that the problem is related to the page switching. Is this a common issue?

Kind regards,

Change its order like

  1. Set a certain variable value to “1”
  2. Open another page

Btw variable MUST be Global not Local.