# How to use Stored Variable?

**URL:** https://community.thunkable.com/t/how-to-use-stored-variable/1009419
**Category:** Questions about Thunkable X
**Created:** [November 30, 2020, 4:24pm UTC](https://community.thunkable.com/t/how-to-use-stored-variable/1009419 "2020-11-30T16:24:49Z")
**Posts on this page:** 18
**Page:** 1

<div class="post-metadata">

### Author: ![wilstreak3xaa](https://avatars.discourse-cdn.com/v4/letter/w/d26b3c/32.png) [@wilstreak3xaa](https://community.thunkable.com/u/wilstreak3xaa)
#### Post date: [November 30, 2020, 4:24pm UTC](https://community.thunkable.com/t/how-to-use-stored-variable/1009419/1 "2020-11-30T16:24:49Z")

</div>

I just watch at [this tutorial by Thunkable](https://www.youtube.com/watch?v=kew1_DpZ8LU) to make checklist apps.

But I am not sure why everytime i close the apps, it doesn’t remember the list eventhough in the block, it already used “local storage” function.

Also, can anyone point me how to use stored variable in this particular scenario? Since you need to make both “label” and “switch”, does that mean I need 2 different “stored variable”.

---

<div class="post-metadata">

### Author: ![luv.ak.tech](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/luv.ak.tech/32/104896_2.png) [@luv.ak.tech](https://community.thunkable.com/u/luv.ak.tech)
#### Post date: [December 1, 2020, 11:25am UTC](https://community.thunkable.com/t/how-to-use-stored-variable/1009419/2 "2020-12-01T11:25:48Z")

</div>

can you share your project so we can check can and tell how to do

---

<div class="post-metadata">

### Author: ![drted](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/drted/32/92694_2.png) [@drted](https://community.thunkable.com/u/drted)
#### Post date: [December 1, 2020, 11:41am UTC](https://community.thunkable.com/t/how-to-use-stored-variable/1009419/3 "2020-12-01T11:41:54Z")

</div>

You use the stored variables the same way as app variables with one exception. For stored variable, when the app open the first time (or after the app’s cache is cleared) you need to initialize the variable. If you do not, trying to use the stored variable can cause a variety of crashes, depending on the data type and use. To initialize, simply set the value in the start even of the first screen.

---

<div class="post-metadata">

### Author: ![wilstreak3xaa](https://avatars.discourse-cdn.com/v4/letter/w/d26b3c/32.png) [@wilstreak3xaa](https://community.thunkable.com/u/wilstreak3xaa)
#### Post date: [December 1, 2020, 1:19pm UTC](https://community.thunkable.com/t/how-to-use-stored-variable/1009419/4 "2020-12-01T13:19:50Z")

</div>

Here is the link.

> **[Thunkable](https://x.thunkable.com/copy/fbacac962e89f0ba1afb575d15b03b0f)**

hope you can help. thank you.

Also if possible, how to make both the label and the switch to be in 1 line, beside each other.

Because if I add a long label, it will make 2nd or 3rd line. Meanwhile, the switch will still only take 1 line.

for illustrative purpose :

Column 1 | Column 2  
breakfast | switch 1  
study group| switch 2  
with friend | switch 3  
lunch |

the label “study group with friend” should only result in 1 switch, but because it is long and takes 2 line, it mess with the formation of the label + switch.

---

<div class="post-metadata">

### Author: ![drted](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/drted/32/92694_2.png) [@drted](https://community.thunkable.com/u/drted)
#### Post date: [December 1, 2020, 1:52pm UTC](https://community.thunkable.com/t/how-to-use-stored-variable/1009419/5 "2020-12-01T13:52:04Z")

</div>

Add a Row and put the label and the switch into the row

> Also if possible, how to make both the label and the switch to be in 1 line, beside each other.

---

<div class="post-metadata">

### Author: ![wilstreak3xaa](https://avatars.discourse-cdn.com/v4/letter/w/d26b3c/32.png) [@wilstreak3xaa](https://community.thunkable.com/u/wilstreak3xaa)
#### Post date: [December 3, 2020, 1:02pm UTC](https://community.thunkable.com/t/how-to-use-stored-variable/1009419/6 "2020-12-03T13:02:55Z")

</div>

Thank you for your input. it works, but it leads to more question. When you add a row, how to define its height to follow the line in the label?

From “Row” “Component” set “Height” to “”

It seems like I can only fill it with absolute size, or is there a way to set the heigh to “fit content”?

---

<div class="post-metadata">

### Author: ![drted](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/drted/32/92694_2.png) [@drted](https://community.thunkable.com/u/drted)
#### Post date: [December 3, 2020, 1:32pm UTC](https://community.thunkable.com/t/how-to-use-stored-variable/1009419/7 "2020-12-03T13:32:14Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/4/043c0ba42b897db4aa5edd91855c30982675ac6c.png)

---

<div class="post-metadata">

### Author: ![wilstreak3xaa](https://avatars.discourse-cdn.com/v4/letter/w/d26b3c/32.png) [@wilstreak3xaa](https://community.thunkable.com/u/wilstreak3xaa)
#### Post date: [December 3, 2020, 2:45pm UTC](https://community.thunkable.com/t/how-to-use-stored-variable/1009419/8 "2020-12-03T14:45:51Z")

</div>

what about a row that you created via block?

So it is not yet available in design section.

---

<div class="post-metadata">

### Author: ![luv.ak.tech](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/luv.ak.tech/32/104896_2.png) [@luv.ak.tech](https://community.thunkable.com/u/luv.ak.tech)
#### Post date: [December 3, 2020, 2:50pm UTC](https://community.thunkable.com/t/how-to-use-stored-variable/1009419/9 "2020-12-03T14:50:37Z")

</div>

@wilstreak3xaa if you want to set height to fit contents then try clone option

---

<div class="post-metadata">

### Author: ![drted](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/drted/32/92694_2.png) [@drted](https://community.thunkable.com/u/drted)
#### Post date: [December 3, 2020, 4:36pm UTC](https://community.thunkable.com/t/how-to-use-stored-variable/1009419/10 "2020-12-03T16:36:07Z")

</div>

You can enter the text in the height.  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/2/f25e6cc0488b418d7793b93c84b31ecfd032a9a0.png)

Keep in mind there are some issues between webapps and device apps ![image|648x83]

> [@\[Solved\] "Screen= Scrollable" & "Column=Scrollable" Is Not Working](http://community.thunkable.com/t/solved-screen-scrollable-column-scrollable-is-not-working/744355/17):
>
> I THINK I’ve identified an issue with scrollable columns. Using the App below, you can see that when using “LIVE TEST” (web) if the column height is set to “Fill container” the top of the list is not visible. But when using Thunkable live on android, the scrollable column works correctly. But if the column height is set to “Fill contents”, the scrolling works correctly in LIVE TEST (web), but the Thunkable Live App on Android does not scroll. The work around I used is to change the column heigh…

---

<div class="post-metadata">

### Author: ![wilstreak3xaa](https://avatars.discourse-cdn.com/v4/letter/w/d26b3c/32.png) [@wilstreak3xaa](https://community.thunkable.com/u/wilstreak3xaa)
#### Post date: [December 4, 2020, 3:37am UTC](https://community.thunkable.com/t/how-to-use-stored-variable/1009419/11 "2020-12-04T03:37:32Z")

</div>

thank you very much, it works. I didn’t knew before that we can just fill empty block with “fit contents”.

By the way, about stored variable. Can you tell me how to apply it?

> **[Thunkable](https://x.thunkable.com/copy/3beca047eaba998f6c9801b0456ebd86)**

I simply didn’t know what component or value to store.

I just want the apps to save the checklist and switch condition so that it will remain everytime i reopen the apps.

Thank you.

---

<div class="post-metadata">

### Author: ![luv.ak.tech](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/luv.ak.tech/32/104896_2.png) [@luv.ak.tech](https://community.thunkable.com/u/luv.ak.tech)
#### Post date: [December 4, 2020, 4:41am UTC](https://community.thunkable.com/t/how-to-use-stored-variable/1009419/12 "2020-12-04T04:41:55Z")

</div>

@wilstreak3xaa i am just completing it for you

---

<div class="post-metadata">

### Author: ![eko.devs.apploroceo](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/eko.devs.apploroceo/32/93147_2.png) [@eko.devs.apploroceo](https://community.thunkable.com/u/eko.devs.apploroceo)
#### Post date: [December 4, 2020, 4:58am UTC](https://community.thunkable.com/t/how-to-use-stored-variable/1009419/14 "2020-12-04T04:58:58Z")

</div>

see this link it will help  
made with stored var

> **[Thunkable](https://x.thunkable.com/copy/d7a1cece2ff3c315fd1f49a03df0fa46)**

@wilstreak3xaa just see mine and everyones for greater learning

---

<div class="post-metadata">

### Author: ![wilstreak3xaa](https://avatars.discourse-cdn.com/v4/letter/w/d26b3c/32.png) [@wilstreak3xaa](https://community.thunkable.com/u/wilstreak3xaa)
#### Post date: [December 4, 2020, 6:36am UTC](https://community.thunkable.com/t/how-to-use-stored-variable/1009419/15 "2020-12-04T06:36:31Z")

</div>

I am sorry, but what do you mean?

Can i see the completed version?

---

<div class="post-metadata">

### Author: ![eko.devs.apploroceo](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/eko.devs.apploroceo/32/93147_2.png) [@eko.devs.apploroceo](https://community.thunkable.com/u/eko.devs.apploroceo)
#### Post date: [December 4, 2020, 6:39am UTC](https://community.thunkable.com/t/how-to-use-stored-variable/1009419/16 "2020-12-04T06:39:14Z")

</div>

by the ttime he makes refer mine

---

<div class="post-metadata">

### Author: ![ozel1978](https://avatars.discourse-cdn.com/v4/letter/o/3ec8ea/32.png) [@ozel1978](https://community.thunkable.com/u/ozel1978)
#### Post date: [December 7, 2020, 4:02am UTC](https://community.thunkable.com/t/how-to-use-stored-variable/1009419/17 "2020-12-07T04:02:05Z")

</div>

Hi Bro,

just asking about store variable. i have created row in airtable and i want same info to be created at store variable. it need to create 1 variable only or each of info need to created own variable. sample block as below.

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/9/9934cdb21525b2ce08a58abf1b7bb337caca94e8.png)

---

<div class="post-metadata">

### Author: ![eko.devs.apploroceo](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/eko.devs.apploroceo/32/93147_2.png) [@eko.devs.apploroceo](https://community.thunkable.com/u/eko.devs.apploroceo)
#### Post date: [December 7, 2020, 4:20am UTC](https://community.thunkable.com/t/how-to-use-stored-variable/1009419/18 "2020-12-07T04:20:04Z")

</div>

maybe use call save blocks  
im not good at airtable\*

---

<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:19pm UTC](https://community.thunkable.com/t/how-to-use-stored-variable/1009419/19 "2024-11-08T12:19:54Z")

</div>


