# Stored variables are not working

**URL:** <https://community.thunkable.com/t/stored-variables-are-not-working/3450433>\
**Category:** Issues / Bugs\
**Created:** [January 5, 2025, 7:27pm UTC](https://community.thunkable.com/t/stored-variables-are-not-working/3450433 "2025-01-05T19:27:28Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![chvadikajps75o4km](https://avatars.discourse-cdn.com/v4/letter/c/b38774/32.png) [@chvadikajps75o4km](https://community.thunkable.com/u/chvadikajps75o4km)\
**Post date:** [January 5, 2025, 7:27pm UTC](https://community.thunkable.com/t/stored-variables-are-not-working/3450433/1 "2025-01-05T19:27:28Z")

</div>

![Screenshot (338)](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/c/ccb19f8a3ae68a57c50ec757cffbc66af48a0260.png)  
 ![Screenshot (336)](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/9/f9f614865e1ee016ca3aca940277ff3edac5d3a3.png)

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).

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [January 5, 2025, 7:58pm UTC](https://community.thunkable.com/t/stored-variables-are-not-working/3450433/2 "2025-01-05T19:58:08Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![chvadikajps75o4km](https://avatars.discourse-cdn.com/v4/letter/c/b38774/32.png) [@chvadikajps75o4km](https://community.thunkable.com/u/chvadikajps75o4km)\
**Post date:** [January 5, 2025, 9:43pm UTC](https://community.thunkable.com/t/stored-variables-are-not-working/3450433/3 "2025-01-05T21:43:25Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [January 5, 2025, 10:16pm UTC](https://community.thunkable.com/t/stored-variables-are-not-working/3450433/4 "2025-01-05T22:16:44Z")

</div>

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

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/6/6699aff556832e68d747b56d4a50d8c0f1329f60.png)

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.

---

<div class="post-metadata">

**Author:** ![chvadikajps75o4km](https://avatars.discourse-cdn.com/v4/letter/c/b38774/32.png) [@chvadikajps75o4km](https://community.thunkable.com/u/chvadikajps75o4km)\
**Post date:** [January 6, 2025, 10:29am UTC](https://community.thunkable.com/t/stored-variables-are-not-working/3450433/5 "2025-01-06T10:29:53Z")

</div>

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

 ![Screenshot (344)](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/a/aa153f305a5eacd0fabfe8150187ebc760836a00.png)  
 ![Screenshot (343)](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/4/8476ede903b25ce72ff5246ddc725fe479345c46.png)

---

<div class="post-metadata">

**Author:** ![chvadikajps75o4km](https://avatars.discourse-cdn.com/v4/letter/c/b38774/32.png) [@chvadikajps75o4km](https://community.thunkable.com/u/chvadikajps75o4km)\
**Post date:** [January 6, 2025, 11:25am UTC](https://community.thunkable.com/t/stored-variables-are-not-working/3450433/6 "2025-01-06T11:25:24Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![chvadikajps75o4km](https://avatars.discourse-cdn.com/v4/letter/c/b38774/32.png) [@chvadikajps75o4km](https://community.thunkable.com/u/chvadikajps75o4km)\
**Post date:** [January 6, 2025, 6:53pm UTC](https://community.thunkable.com/t/stored-variables-are-not-working/3450433/8 "2025-01-06T18:53:31Z")

</div>

@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.

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [January 7, 2025, 6:50am UTC](https://community.thunkable.com/t/stored-variables-are-not-working/3450433/9 "2025-01-07T06:50:24Z")

</div>

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