Stored variables are not working


Hey!

  1. Stored variables are not working. When I tried on mobile live test, only the “stored name variable” is working but on web preview, none of the variables is working. Also, when I place “Set variable to ____” above the navigation block, the code does not proceeds (I had used navigation, but when I click the button navigation does not occur. When, I place navigation block above “set variable to ____” blocks, navigation is working.

  2. Also, when I use “stored email” as the row id, the update function is not working and again the code does not proceeds (navigation does not happen).

Set the variable values before navigating to another screen.

Also, I always check if a stored variable has the value null and if so, I give it a starting value (e.g. “”, a blank string). Not sure if that’s still necessary but it had been in the past. You can do that when the screen opens.

But when I am putting the set variable blocks above the navigation block, the code is not working. Navigation does not happen.

When the screen opens, if stored variable = null then set stored variable to “”. Somewhat like this:

That needs to go at the top of your When Screen Opens blocks for the screen where you first reference the stored variables.

Post an updated screenshot if you’re still having problems.

1 Like

It is still not working. No row is created in the databases. Also no navigation is happening.


Yes, now it is working. Thank you so much!

@tatiang Still the edit profile screen, the one which I had shared in the first screenshot, is not working. Please let me know if the code needs to be changed.

Please post a new screenshot of those blocks. Make sure you are using a correct value for the row id.