# \[Solved\] Stored Variable not appearing

**URL:** <https://community.thunkable.com/t/solved-stored-variable-not-appearing/535152>\
**Category:** Questions about Thunkable X\
**Tags:** variables, listview\
**Created:** [March 25, 2020, 5:25pm UTC](https://community.thunkable.com/t/solved-stored-variable-not-appearing/535152 "2020-03-25T17:25:34Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![huntermclarkn](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/huntermclarkn/32/66310_2.png) [@huntermclarkn](https://community.thunkable.com/u/huntermclarkn)\
**Post date:** [March 25, 2020, 5:25pm UTC](https://community.thunkable.com/t/solved-stored-variable-not-appearing/535152/1 "2020-03-25T17:25:34Z")

</div>

So there is alot in the archives about Stored Variables, but I couldn’t find one to help me with this.

I have Initiated my variable on my start screen  
 ![Annotation 2020-03-25 165515](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/d/0ddab6dfd9e6c1ef1fde475e6750c754c428830d.jpeg)

On my Text Add Screen I have set it as follows for my variable

 ![Annotation 2020-03-25 165725](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/e/5ea1c41dd7494d382f6a805816503d209c56427a.jpeg)

And then on the screen I want the text from Stored Name to appear on, my blocks are

 ![Annotation 2020-03-25 165758](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/8/58bdeea67adab6ca2119546150b87c43e2de9bff.jpeg)

So far I am unable to leave from my Text Add Screen. (It gets stuck when I hit the save button). I was able to get success using Local storage, but I need to switch to Stored Variable to so the list can have more than 1 item. I’m sure its a block issue somewhere but I’ve tried to look at blocks from similar projects and am just having difficulty wrapping my head around this.

---

<div class="post-metadata">

**Author:** ![manyone](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@manyone](https://community.thunkable.com/u/manyone)\
**Post date:** [March 25, 2020, 5:52pm UTC](https://community.thunkable.com/t/solved-stored-variable-not-appearing/535152/2 "2020-03-25T17:52:08Z")

</div>

i dont know if you must missed showing the block but when you intend to populate a list, you should set it first to empty list.

set stored Name to emptyList

---

<div class="post-metadata">

**Author:** ![huntermclarkn](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/huntermclarkn/32/66310_2.png) [@huntermclarkn](https://community.thunkable.com/u/huntermclarkn)\
**Post date:** [March 25, 2020, 6:00pm UTC](https://community.thunkable.com/t/solved-stored-variable-not-appearing/535152/3 "2020-03-25T18:00:16Z")

</div>

Would that go on the screen the list will populate or the screen the text is added?

My problem still is that when I hit my save button after entering text, I get stuck.

---

<div class="post-metadata">

**Author:** ![huntermclarkn](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/huntermclarkn/32/66310_2.png) [@huntermclarkn](https://community.thunkable.com/u/huntermclarkn)\
**Post date:** [March 25, 2020, 6:13pm UTC](https://community.thunkable.com/t/solved-stored-variable-not-appearing/535152/4 "2020-03-25T18:13:58Z")

</div>

It doesn’t show in my original picture but I do have a return to main screen block

 ![Annotation 2020-03-25 175913](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/b/7b0b8e406dbe8a71f453eeb3c670187d60e7ed10.jpeg)

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [March 25, 2020, 6:20pm UTC](https://community.thunkable.com/t/solved-stored-variable-not-appearing/535152/5 "2020-03-25T18:20:38Z")

</div>

@huntermclarkn you’d actually need to do something like this to initialise your list, and to make sure that you don’t wipe your list _every_ time the app opens

![Screenshot 2020-03-25 at 18.04.42](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/7/e73ab3e418ef3647853dc65eb171356e9b0e9b96.png)

---

<div class="post-metadata">

**Author:** ![huntermclarkn](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/huntermclarkn/32/66310_2.png) [@huntermclarkn](https://community.thunkable.com/u/huntermclarkn)\
**Post date:** [March 25, 2020, 6:38pm UTC](https://community.thunkable.com/t/solved-stored-variable-not-appearing/535152/6 "2020-03-25T18:38:56Z")

</div>

Okay, I added that section. My problem now is that I enter the text on the add screen. But when I hit save I am not going back to the main screen to view.

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [March 25, 2020, 6:52pm UTC](https://community.thunkable.com/t/solved-stored-variable-not-appearing/535152/7 "2020-03-25T18:52:38Z")

</div>

can you share an entire screenshot of the blocks? or a share link? I’d be happy to look into this for you.

I think with your text entry blocks, they never equal null do they? just empty text?  
 ![Screen Shot 2020-03-25 at 2.39.00 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/7/0760ea8ca03fc2f566a4e2b247ce0acb39e79b11.png)

if you arent going to save, this means your code is not executing fully or your logic is not correct.

---

<div class="post-metadata">

**Author:** ![huntermclarkn](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/huntermclarkn/32/66310_2.png) [@huntermclarkn](https://community.thunkable.com/u/huntermclarkn)\
**Post date:** [March 25, 2020, 6:56pm UTC](https://community.thunkable.com/t/solved-stored-variable-not-appearing/535152/8 "2020-03-25T18:56:01Z")

</div>

Here is the full Screen Shot Of the add page ( where I can’t Save)

 ![Annotation 2020-03-25 184015](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/0/a09e88f60da6969bde8f146a7c213a612fa90e1a.jpeg)

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [March 25, 2020, 7:14pm UTC](https://community.thunkable.com/t/solved-stored-variable-not-appearing/535152/9 "2020-03-25T19:14:23Z")

</div>

date input always has a starter value, it can’t be null. (i’m 75% certain)

try my blocks from above. the red ‘text’ blok. it’s worth a shot

---

<div class="post-metadata">

**Author:** ![huntermclarkn](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/huntermclarkn/32/66310_2.png) [@huntermclarkn](https://community.thunkable.com/u/huntermclarkn)\
**Post date:** [March 26, 2020, 9:50am UTC](https://community.thunkable.com/t/solved-stored-variable-not-appearing/535152/10 "2020-03-26T09:50:38Z")

</div>

I did change the blocks as shown below.

 ![Annotation 2020-03-26 093456](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/7/975f3c21cd29c49525aacf55f4828883ec245520.jpeg)

Now when I enter my app once it gets the the Main Screen the Screen goes white. Here are all my blocks on the main screen

 ![Annotation 2020-03-26 095204](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/4/d437cb149a01d09a4b698450d6eb55b38e9973f3.jpeg)

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [March 26, 2020, 3:00pm UTC](https://community.thunkable.com/t/solved-stored-variable-not-appearing/535152/11 "2020-03-26T15:00:47Z")

</div>

@huntermclarkn you see to have a duplicate screen opens event handler.

If you place all your blocks into a single `when Main_Screen Opens` blocks then this should resolve this issue for you.

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [March 26, 2020, 3:47pm UTC](https://community.thunkable.com/t/solved-stored-variable-not-appearing/535152/12 "2020-03-26T15:47:05Z")

</div>

@huntermclarkn, you are asking to numerically arrange a list of names? Maybe try alphabetic order?

Also, follow @domhnallohanlon’s advce to combine those on open blocks into 1 full code block. Having more than 1 makes the app more prone to issues.

---

<div class="post-metadata">

**Author:** ![huntermclarkn](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/huntermclarkn/32/66310_2.png) [@huntermclarkn](https://community.thunkable.com/u/huntermclarkn)\
**Post date:** [March 26, 2020, 4:13pm UTC](https://community.thunkable.com/t/solved-stored-variable-not-appearing/535152/13 "2020-03-26T16:13:55Z")

</div>

Okay, that solved the problem. But I still can’t get the data to show up. Here’s a link to the project [https://x.thunkable.com/copy/4ca0fcfcc750171ee858552876e8c1a3](https://x.thunkable.com/copy/4ca0fcfcc750171ee858552876e8c1a3)

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [March 26, 2020, 4:33pm UTC](https://community.thunkable.com/t/solved-stored-variable-not-appearing/535152/14 "2020-03-26T16:33:11Z")

</div>

You have 2 issues that I see

see the app running here  
[https://thunk.app/w/Oqta0pjiK](https://thunk.app/w/Oqta0pjiK)

first, you have your list population blocks within the logic for if the variable name is null. the issue with that is this means because you give it value at this point it will never be null. Also, then on the first time you assign it a value “empty list” you show exactly that. an empty list and the list is never populated aain because it’s never a null variable and the logic prohibits futher loading.

try this  
 ![giphy (17)](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/9/f9566ca53646f4317e303091f71b2e4fcadeb14a.gif)

and then try to remove that extra ‘list’ block. the var name is already a list. you are trying to make a list, a list which may also be producing errors

 ![Screen Shot 2020-03-26 at 12.13.51 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/8/4883f783e9a11ba0ce76ac0df923a40a0cd3ef76.png)

---

<div class="post-metadata">

**Author:** ![huntermclarkn](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/huntermclarkn/32/66310_2.png) [@huntermclarkn](https://community.thunkable.com/u/huntermclarkn)\
**Post date:** [March 26, 2020, 4:36pm UTC](https://community.thunkable.com/t/solved-stored-variable-not-appearing/535152/15 "2020-03-26T16:36:59Z")

</div>

Thank you so much Jared, that’s the fix I needed.

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [March 26, 2020, 4:38pm UTC](https://community.thunkable.com/t/solved-stored-variable-not-appearing/535152/16 "2020-03-26T16:38:32Z")

</div>

Happy to help!

Be sure to return the love eventually! Teamwork makes the dream work!

---

<div class="post-metadata">

**Author:** ![huntermclarkn](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/huntermclarkn/32/66310_2.png) [@huntermclarkn](https://community.thunkable.com/u/huntermclarkn)\
**Post date:** [March 26, 2020, 4:41pm UTC](https://community.thunkable.com/t/solved-stored-variable-not-appearing/535152/17 "2020-03-26T16:41:57Z")

</div>

Have been trying to put my little bit of knowledge out there whenever I can

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [March 26, 2020, 4:48pm UTC](https://community.thunkable.com/t/solved-stored-variable-not-appearing/535152/18 "2020-03-26T16:48:02Z")

</div>

Sorry. I fee it came off rudely. I didn’t mean you’re not helping others or providing info.

As a member of the community I really appreciated others can help me out! Thank you 🙏

---

<div class="post-metadata">

**Author:** ![huntermclarkn](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/huntermclarkn/32/66310_2.png) [@huntermclarkn](https://community.thunkable.com/u/huntermclarkn)\
**Post date:** [March 26, 2020, 4:51pm UTC](https://community.thunkable.com/t/solved-stored-variable-not-appearing/535152/19 "2020-03-26T16:51:37Z")

</div>

Not rude at all, I saw and read it as fostering community. Keep doing what youre doing! 🙂

---

<div class="post-metadata">

**Author:** ![huntermclarkn](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/huntermclarkn/32/66310_2.png) [@huntermclarkn](https://community.thunkable.com/u/huntermclarkn)\
**Post date:** [March 27, 2020, 11:08am UTC](https://community.thunkable.com/t/solved-stored-variable-not-appearing/535152/20 "2020-03-27T11:08:00Z")

</div>

Hey, another question on the same vein with a link to the project  
[https://x.thunkable.com/copy/2d1ebc91d9700df665c7e374faa1e473](https://x.thunkable.com/copy/2d1ebc91d9700df665c7e374faa1e473)

So I can now get my different Names to show up on the Main Screen, but when i click on individual names I want all their other Pet Info to be unique to that name I click on. Right now, When I click on a name from the list the next screen just shows the last other data that I have entered. Let me know if that makes sense and if you think a Stored Variable will work for that or if I need a cloud variable or something else entirely

[Next page](https://community.thunkable.com/t/solved-stored-variable-not-appearing/535152.md?page=2)
