# Store to do list for each user

**URL:** <https://community.thunkable.com/t/store-to-do-list-for-each-user/1526931>\
**Category:** Questions about Thunkable X\
**Created:** [September 25, 2021, 4:26pm UTC](https://community.thunkable.com/t/store-to-do-list-for-each-user/1526931 "2021-09-25T16:26:03Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![yosramherig](https://avatars.discourse-cdn.com/v4/letter/y/b5e925/32.png) [@yosramherig](https://community.thunkable.com/u/yosramherig)\
**Post date:** [September 25, 2021, 4:26pm UTC](https://community.thunkable.com/t/store-to-do-list-for-each-user/1526931/1 "2021-09-25T16:26:03Z")

</div>

hello…

im trying to create a to do list app that save list with each login, but im not sure how to use cloud variable in order to get the data back for each user indivually.

thanks

---

<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:** [September 25, 2021, 4:30pm UTC](https://community.thunkable.com/t/store-to-do-list-for-each-user/1526931/2 "2021-09-25T16:30:52Z")

</div>

Please show your code as screen copy or project link and explain what have you tried so far and where you’ve got stuck.

---

<div class="post-metadata">

**Author:** ![yosramherig](https://avatars.discourse-cdn.com/v4/letter/y/b5e925/32.png) [@yosramherig](https://community.thunkable.com/u/yosramherig)\
**Post date:** [September 25, 2021, 4:36pm UTC](https://community.thunkable.com/t/store-to-do-list-for-each-user/1526931/3 "2021-09-25T16:36:42Z")

</div>

[https://x.thunkable.com/copy/f535f1f36545f23ad936d5055d83ca51](https://x.thunkable.com/copy/f535f1f36545f23ad936d5055d83ca51)

this is the project.  
as you can see, im able to store users and their login infos and so on.  
but i dont know how to link each account with their own list, so each written list will be deleted if the user log out.

---

<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:** [September 25, 2021, 6:03pm UTC](https://community.thunkable.com/t/store-to-do-list-for-each-user/1526931/4 "2021-09-25T18:03:27Z")

</div>

I had a quick look into the project.

The condition in this block has no effect

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

However,  
You are saving the `green userId block` which is good but not using it anywhere therefore this is my suggestion:

- Create a table using Airtable or Google sheet or connect your app to Firebase.
- The table will have minimum of two columns (userID, userList), For Firebase, you will use the userId as the database key.
- Whenever the list is changed, you need to save it to the table (or the key)
- With every successful login, you will read the list from the table to show it in the app.
- In case you want this to be saved in the user device (phone or tablet) then you can save the list to a `stored variable`.

I made the following changes in the app

- Added a new variable  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/0/6074b7ae0e8dbe572d1169ac0a1e0812b7eb5ad2.png)

- in the open event of **LIST1** screen I added  

- In the **ADD** button, I changed  

- I also added a table to the project  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/d/ed8862f3b137120198a98f87f13f203336224a0f.png)

Using these changes the app now saves the list of each user to a different row in the table. I made this as a local table but you need to connect it to something like Google sheet to see the effect.

---

<div class="post-metadata">

**Author:** ![yosramherig](https://avatars.discourse-cdn.com/v4/letter/y/b5e925/32.png) [@yosramherig](https://community.thunkable.com/u/yosramherig)\
**Post date:** [September 25, 2021, 6:10pm UTC](https://community.thunkable.com/t/store-to-do-list-for-each-user/1526931/5 "2021-09-25T18:10:28Z")

</div>

thanks a lot, ill try to use this method!!!

---

<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:15pm UTC](https://community.thunkable.com/t/store-to-do-list-for-each-user/1526931/6 "2024-11-08T13:15:07Z")

</div>


