# Problem saving in local storage

**URL:** <https://community.thunkable.com/t/problem-saving-in-local-storage/42068>\
**Category:** Questions about Thunkable X\
**Created:** [August 19, 2018, 2:04pm UTC](https://community.thunkable.com/t/problem-saving-in-local-storage/42068 "2018-08-19T14:04:56Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![AcrobatEpee](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/acrobatepee/32/26336_2.png) [@AcrobatEpee](https://community.thunkable.com/u/AcrobatEpee)\
**Post date:** [August 19, 2018, 2:04pm UTC](https://community.thunkable.com/t/problem-saving-in-local-storage/42068/1 "2018-08-19T14:04:56Z")

</div>

So I need to lauch a certain screen while landing on the main screen depending on which screen the user is coming from. (Play again button basically). So I used this system which in my head was supposed to work perfectly but it appears it doesn’t, can somebody help me please ?  
Thanks in advance

![Screenshot_1](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/5/f536679d0f0b0b9e65e1dde37cd7c1e498586b76.png)

 ![Screenshot_2](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/7/d79a6beae6eaa7b4d48988a37c3c8e61842b8a1c.png)

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [August 19, 2018, 3:09pm UTC](https://community.thunkable.com/t/problem-saving-in-local-storage/42068/2 "2018-08-19T15:09:05Z")

</div>

Block “navigate to Home” is located after the asynchronously working block “Result.callGet”, but it needs to be located inside this block.

---

<div class="post-metadata">

**Author:** ![AcrobatEpee](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/acrobatepee/32/26336_2.png) [@AcrobatEpee](https://community.thunkable.com/u/AcrobatEpee)\
**Post date:** [August 19, 2018, 3:15pm UTC](https://community.thunkable.com/t/problem-saving-in-local-storage/42068/3 "2018-08-19T15:15:10Z")

</div>

But this part is working fine the button leads to the home page the problem is in savong the values

---

<div class="post-metadata">

**Author:** ![AcrobatEpee](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/acrobatepee/32/26336_2.png) [@AcrobatEpee](https://community.thunkable.com/u/AcrobatEpee)\
**Post date:** [August 19, 2018, 3:29pm UTC](https://community.thunkable.com/t/problem-saving-in-local-storage/42068/4 "2018-08-19T15:29:27Z")

</div>

I changed it anyway but still not working.  
The problem isn’t in the local storage because I use the same system for my score and it works. The problem is in the 2nd screenshot there is something I did wrong but I can’t figure out what it is.  
Thanks for helping.

---

<div class="post-metadata">

**Author:** ![AcrobatEpee](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/acrobatepee/32/26336_2.png) [@AcrobatEpee](https://community.thunkable.com/u/AcrobatEpee)\
**Post date:** [August 19, 2018, 3:34pm UTC](https://community.thunkable.com/t/problem-saving-in-local-storage/42068/5 "2018-08-19T15:34:36Z")

</div>

Ok so I found the issue I put 2times the same thing so I fixed it and it works, but now when i open the screen it directly lauches without loading the screen

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/b/1bae8ae1ecc2e41bccd15d645fc754b05f87b8e1.png)

---

<div class="post-metadata">

**Author:** ![AcrobatEpee](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/acrobatepee/32/26336_2.png) [@AcrobatEpee](https://community.thunkable.com/u/AcrobatEpee)\
**Post date:** [August 19, 2018, 4:58pm UTC](https://community.thunkable.com/t/problem-saving-in-local-storage/42068/6 "2018-08-19T16:58:50Z")

</div>

Ok so I solved it myself, I’m going to post the solution for those in need.

I was calling the countdown whenever the screen loaded but didn’t take in consideration that if the user didn’t want to play again i’d need to put a “if” condition so I basically just changed the first block to this and it worked. Enjoy 🙂

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

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 12:00pm UTC](https://community.thunkable.com/t/problem-saving-in-local-storage/42068/7 "2024-11-08T12:00:44Z")

</div>


