# Can we save data from multiple screens?

**URL:** <https://community.thunkable.com/t/can-we-save-data-from-multiple-screens/1268797>\
**Category:** Questions about Thunkable X\
**Created:** [May 7, 2021, 11:48am UTC](https://community.thunkable.com/t/can-we-save-data-from-multiple-screens/1268797 "2021-05-07T11:48:38Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![charvi2k9gsbk2i](https://avatars.discourse-cdn.com/v4/letter/c/839c29/32.png) [@charvi2k9gsbk2i](https://community.thunkable.com/u/charvi2k9gsbk2i)\
**Post date:** [May 7, 2021, 11:48am UTC](https://community.thunkable.com/t/can-we-save-data-from-multiple-screens/1268797/1 "2021-05-07T11:48:38Z")

</div>

so I have multiple screens in my app and I wanna get all the data and store it in the database. so I decided to use 1 variable in each screen and save the data in the list and on the screen where I save the data there again I’m gonna use 1 variable where all the other variables are stored in list? But this isn’t working. any other easy and quick solutions for getting and saving data from multiple screens and saving it in 1.

---

<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:** [May 7, 2021, 12:21pm UTC](https://community.thunkable.com/t/can-we-save-data-from-multiple-screens/1268797/2 "2021-05-07T12:21:44Z")

</div>

Using a variable (or more than one) is absolutely the right way to move values between screens. I’m not sure what you meant here:

> [@charvi2k9gsbk2i](#):
>
> use 1 variable where all the other variables are stored in list?

You can certainly use one Thunkable variable to hold a list or an object, either of which could be a way to move multiple values between screens. You could also have a variable for each value you want to move around. It depends on your use case. If you want help figuring out why your approach isn’t working, you’ll have to post some blocks.

If your app has a LOT of blocks at this point, I HIGHLY recommend making a project that _just_ shows your (failing) attempt to move variables between screens. (Sort of a ‘minimum working example’, but not actually working yet.) It’s super easy to debug 20 blocks of code trying to do one thing. It’s a lot harder to debug thousands of blocks. 🙂 Sometimes when I build my minimum example, I discover my problem. But if I don’t, then I have a really simple case that shows the problem, and it’s easier to get help for it.

---

<div class="post-metadata">

**Author:** ![charvi2k9gsbk2i](https://avatars.discourse-cdn.com/v4/letter/c/839c29/32.png) [@charvi2k9gsbk2i](https://community.thunkable.com/u/charvi2k9gsbk2i)\
**Post date:** [May 7, 2021, 12:27pm UTC](https://community.thunkable.com/t/can-we-save-data-from-multiple-screens/1268797/3 "2021-05-07T12:27:18Z")

</div>

> [@catsarisky](#):
>
> Using a variable (or more than one) is absolutely the right way to move values between screens. I’m not sure what you meant here:

ok, so my logic is right them maybe it’s not working cause I am using Gmail as a key I have used these blocks to replace “@” and “.” hope it’s right?

 ![Screenshot 2021-05-07 at 5.56.31 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/9/e9bfdd52f4174bbdd17f241cd86cc945eb62bdb3.jpeg)

---

<div class="post-metadata">

**Author:** ![charvi2k9gsbk2i](https://avatars.discourse-cdn.com/v4/letter/c/839c29/32.png) [@charvi2k9gsbk2i](https://community.thunkable.com/u/charvi2k9gsbk2i)\
**Post date:** [May 7, 2021, 12:28pm UTC](https://community.thunkable.com/t/can-we-save-data-from-multiple-screens/1268797/4 "2021-05-07T12:28:43Z")

</div>

> [@catsarisky](#):
>
> You could also have a variable for each value you want to move around. It depends on your use case.

in would not work in my case cause them it will take more than 50 variables

---

<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:** [May 7, 2021, 12:55pm UTC](https://community.thunkable.com/t/can-we-save-data-from-multiple-screens/1268797/5 "2021-05-07T12:55:37Z")

</div>

So what happens when you click the button? What’s the error?

---

<div class="post-metadata">

**Author:** ![charvi2k9gsbk2i](https://avatars.discourse-cdn.com/v4/letter/c/839c29/32.png) [@charvi2k9gsbk2i](https://community.thunkable.com/u/charvi2k9gsbk2i)\
**Post date:** [May 7, 2021, 1:28pm UTC](https://community.thunkable.com/t/can-we-save-data-from-multiple-screens/1268797/6 "2021-05-07T13:28:27Z")

</div>

there’s no error for signing in. Once I enter my data and click on the save button then my data is not being shown in the database. This is how I’m saving the data on each screen:

 ![Screenshot 2021-05-07 at 6.53.28 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/d/8d6049ac379d2186959263c6d1b0ebcb9792aa5a.png)

and this is how I’m saving data in the database

 ![Screenshot 2021-05-07 at 6.54.41 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/9/d92f89f412bb8653389bc4a4e657bdf92bba08b4.png)

 ![Screenshot 2021-05-07 at 6.55.51 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/8/883b58b9c282f2912860659aecf6048d3da06a6b.png)

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [May 7, 2021, 2:49pm UTC](https://community.thunkable.com/t/can-we-save-data-from-multiple-screens/1268797/7 "2021-05-07T14:49:46Z")

</div>

Words used as key should not contain some of the characters and one of them is “@”

Check Firebase documentation to see the list of all illegal characters in database keys.

---

<div class="post-metadata">

**Author:** ![charvi2k9gsbk2i](https://avatars.discourse-cdn.com/v4/letter/c/839c29/32.png) [@charvi2k9gsbk2i](https://community.thunkable.com/u/charvi2k9gsbk2i)\
**Post date:** [May 7, 2021, 2:56pm UTC](https://community.thunkable.com/t/can-we-save-data-from-multiple-screens/1268797/8 "2021-05-07T14:56:57Z")

</div>

![Screenshot 2021-05-07 at 8.25.54 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/6/c65b226dc5684c27cc9e2cbf07286d2a1af49165.png)  
this is what I see. but I have replaced “.” with “o”… I hope there is no mistake in saving the data?

---

<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:** [May 7, 2021, 3:18pm UTC](https://community.thunkable.com/t/can-we-save-data-from-multiple-screens/1268797/9 "2021-05-07T15:18:57Z")

</div>

So for your save block, what’s the output of the error block? That’s where to look for the problem

---

<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:** [May 7, 2021, 3:23pm UTC](https://community.thunkable.com/t/can-we-save-data-from-multiple-screens/1268797/11 "2021-05-07T15:23:00Z")

</div>

You need to temporarily show what the error block has in it. Put it in a label somewhere.

This one:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/8/a897e8dd0c108fe784d13f903e2dc46afbed7edf.jpeg)

---

<div class="post-metadata">

**Author:** ![charvi2k9gsbk2i](https://avatars.discourse-cdn.com/v4/letter/c/839c29/32.png) [@charvi2k9gsbk2i](https://community.thunkable.com/u/charvi2k9gsbk2i)\
**Post date:** [May 7, 2021, 3:38pm UTC](https://community.thunkable.com/t/can-we-save-data-from-multiple-screens/1268797/16 "2021-05-07T15:38:50Z")

</div>

ok so i change my code to this:

 ![Screenshot 2021-05-07 at 9.08.10 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/b/abadee39d6bea5e750fcdba5304bfb9791de7c3c.png)  
Error:  
 ![IMG_A50456D7A48E-1](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/e/6edd4c3d688051b559cd9924376ecc0748114135.jpeg)  
this is my current code and error!

---

<div class="post-metadata">

**Author:** ![charvi2k9gsbk2i](https://avatars.discourse-cdn.com/v4/letter/c/839c29/32.png) [@charvi2k9gsbk2i](https://community.thunkable.com/u/charvi2k9gsbk2i)\
**Post date:** [May 7, 2021, 3:39pm UTC](https://community.thunkable.com/t/can-we-save-data-from-multiple-screens/1268797/17 "2021-05-07T15:39:20Z")

</div>

> [@charvi2k9gsbk2i](#):
>
> ok so i change my code to this:

the second one is @ i change it

---

<div class="post-metadata">

**Author:** ![charvi2k9gsbk2i](https://avatars.discourse-cdn.com/v4/letter/c/839c29/32.png) [@charvi2k9gsbk2i](https://community.thunkable.com/u/charvi2k9gsbk2i)\
**Post date:** [May 7, 2021, 3:53pm UTC](https://community.thunkable.com/t/can-we-save-data-from-multiple-screens/1268797/18 "2021-05-07T15:53:09Z")

</div>

its showing different errors everytime and also when its showing the error  
it also says  
“0.3” what does this indicate? maybe as these “.” as not replaces its showing an error

---

<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:** [May 7, 2021, 3:54pm UTC](https://community.thunkable.com/t/can-we-save-data-from-multiple-screens/1268797/19 "2021-05-07T15:54:24Z")

</div>

Awesome. So that’s informative. Sounds like you need to check the blocks that should substitute.

---

<div class="post-metadata">

**Author:** ![charvi2k9gsbk2i](https://avatars.discourse-cdn.com/v4/letter/c/839c29/32.png) [@charvi2k9gsbk2i](https://community.thunkable.com/u/charvi2k9gsbk2i)\
**Post date:** [May 7, 2021, 3:55pm UTC](https://community.thunkable.com/t/can-we-save-data-from-multiple-screens/1268797/20 "2021-05-07T15:55:19Z")

</div>

> [@catsarisky](#):
>
> Sounds like you need to check the blocks that should substitute.

meaning?

---

<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:** [May 7, 2021, 3:56pm UTC](https://community.thunkable.com/t/can-we-save-data-from-multiple-screens/1268797/21 "2021-05-07T15:56:39Z")

</div>

Well, it made more sense before you withdrew a bunch of posts!

---

<div class="post-metadata">

**Author:** ![charvi2k9gsbk2i](https://avatars.discourse-cdn.com/v4/letter/c/839c29/32.png) [@charvi2k9gsbk2i](https://community.thunkable.com/u/charvi2k9gsbk2i)\
**Post date:** [May 7, 2021, 3:57pm UTC](https://community.thunkable.com/t/can-we-save-data-from-multiple-screens/1268797/22 "2021-05-07T15:57:50Z")

</div>

what are they?

---

<div class="post-metadata">

**Author:** ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)\
**Post date:** [May 7, 2021, 3:59pm UTC](https://community.thunkable.com/t/can-we-save-data-from-multiple-screens/1268797/23 "2021-05-07T15:59:28Z")

</div>

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

She means all these. Don’t keep deleting posts. Instead, edit them to reflect your updated thoughts.

---

<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:** [May 7, 2021, 3:59pm UTC](https://community.thunkable.com/t/can-we-save-data-from-multiple-screens/1268797/24 "2021-05-07T15:59:48Z")

</div>

The sign in block is going to need the actual email. That’s probably the source of your latest error.

---

<div class="post-metadata">

**Author:** ![charvi2k9gsbk2i](https://avatars.discourse-cdn.com/v4/letter/c/839c29/32.png) [@charvi2k9gsbk2i](https://community.thunkable.com/u/charvi2k9gsbk2i)\
**Post date:** [May 7, 2021, 4:00pm UTC](https://community.thunkable.com/t/can-we-save-data-from-multiple-screens/1268797/25 "2021-05-07T16:00:39Z")

</div>

ok sure

[Next page](https://community.thunkable.com/t/can-we-save-data-from-multiple-screens/1268797.md?page=2)
