# \[Solved\] Save Slider value in blocks

**URL:** <https://community.thunkable.com/t/solved-save-slider-value-in-blocks/1221937>\
**Category:** Questions about Thunkable X\
**Tags:** solved, slider\
**Created:** [April 13, 2021, 3:36pm UTC](https://community.thunkable.com/t/solved-save-slider-value-in-blocks/1221937 "2021-04-13T15:36:18Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![reen27](https://avatars.discourse-cdn.com/v4/letter/r/48db29/32.png) [@reen27](https://community.thunkable.com/u/reen27)\
**Post date:** [April 13, 2021, 3:36pm UTC](https://community.thunkable.com/t/solved-save-slider-value-in-blocks/1221937/1 "2021-04-13T15:36:18Z")

</div>

hello i’m working on a project and i’m kind of new to thunkable, so maybe i’m just not understanding if i’m doing something wrong.  
in one of my screens i put some sliders, and since i want the value i set them to to be remembered when i come back to the screen after closing the app, i used these blocks (image 1) to store it.

 ![Cattura](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/5/d51d69f644ae0191fe11c75f16e1bcce7ce8a80a.png)  
yesterday, when i made it, everything was working just fine. today coming back to it, when i try to change the value it displays this error message (image 2).  
 ![WhatsApp Image 2021-04-13 at 17.24.17](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/2/92aeb104d5ab1b12145ca60f0ad63e54fc76ce84.jpeg)  
does anyone have an idea on how to fix it? am i just making a dumb error that i can’t see?  
thank you guys, and sorry if anyone already posted something similar to this, im kind of in a rush and i don’t have the time to check every topic

---

<div class="post-metadata">

**Author:** ![catsarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/catsarisky/32/100661_2.png) [@catsarisky](https://community.thunkable.com/u/catsarisky)\
**Post date:** [April 13, 2021, 3:50pm UTC](https://community.thunkable.com/t/solved-save-slider-value-in-blocks/1221937/2 "2021-04-13T15:50:03Z")

</div>

Do you need to check that the value isn’t null before setting the slider to it?

What platform are you testing on? (Thunkable Live or installed? iOS/Android/Web app?)

One way I like to debug code that’s crashing like this is to start disconnecting blocks. If you unplug all the calls to local storage in the “when weather starts” blocks and the crash stops, you know the problem is there…

---

<div class="post-metadata">

**Author:** ![reen27](https://avatars.discourse-cdn.com/v4/letter/r/48db29/32.png) [@reen27](https://community.thunkable.com/u/reen27)\
**Post date:** [April 13, 2021, 4:24pm UTC](https://community.thunkable.com/t/solved-save-slider-value-in-blocks/1221937/3 "2021-04-13T16:24:23Z")

</div>

hi, im testing on thunkable live, web app i think?  
i’ll try what you said and start working from there, thank you!

---

<div class="post-metadata">

**Author:** ![catsarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/catsarisky/32/100661_2.png) [@catsarisky](https://community.thunkable.com/u/catsarisky)\
**Post date:** [April 13, 2021, 4:25pm UTC](https://community.thunkable.com/t/solved-save-slider-value-in-blocks/1221937/4 "2021-04-13T16:25:43Z")

</div>

Were you testing the same way last time? Not on a phone?

---

<div class="post-metadata">

**Author:** ![reen27](https://avatars.discourse-cdn.com/v4/letter/r/48db29/32.png) [@reen27](https://community.thunkable.com/u/reen27)\
**Post date:** [April 13, 2021, 4:51pm UTC](https://community.thunkable.com/t/solved-save-slider-value-in-blocks/1221937/5 "2021-04-13T16:51:19Z")

</div>

oh no yeah i’m testing on android, sorry i misunerdstood (english isn’t my first language)  
and yes i’ve always been testing on android

---

<div class="post-metadata">

**Author:** ![catsarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/catsarisky/32/100661_2.png) [@catsarisky](https://community.thunkable.com/u/catsarisky)\
**Post date:** [April 13, 2021, 6:06pm UTC](https://community.thunkable.com/t/solved-save-slider-value-in-blocks/1221937/6 "2021-04-13T18:06:10Z")

</div>

Got it. You can get that screen if you ask Thunkable to do something that’s not allowed and it crashes.

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

Where’s that green “newValue” block coming from? The slider on value change gives a “value” block to work with, but I don’t see where “newValue” comes from, and I wonder if you meant that to be the “value” block, and if that’s causing the crash.

---

<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:** [April 13, 2021, 6:26pm UTC](https://community.thunkable.com/t/solved-save-slider-value-in-blocks/1221937/7 "2021-04-13T18:26:20Z")

</div>

@catsarisky Good catch! Yep, those green blocks are special… they can only be used inside of the block they are attached to.

---

<div class="post-metadata">

**Author:** ![reen27](https://avatars.discourse-cdn.com/v4/letter/r/48db29/32.png) [@reen27](https://community.thunkable.com/u/reen27)\
**Post date:** [April 13, 2021, 6:59pm UTC](https://community.thunkable.com/t/solved-save-slider-value-in-blocks/1221937/8 "2021-04-13T18:59:40Z")

</div>

THANK YOU!!! it’s probably because i copied the blocks from the ones i used for some switches  
now they work perfectly \<3

---

<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, 1:25pm UTC](https://community.thunkable.com/t/solved-save-slider-value-in-blocks/1221937/9 "2024-11-08T13:25:19Z")

</div>


