# How to code the list viewer

**URL:** https://community.thunkable.com/t/how-to-code-the-list-viewer/1206174
**Category:** Questions about Thunkable X
**Tags:** listviewer
**Created:** [April 5, 2021, 5:50am UTC](https://community.thunkable.com/t/how-to-code-the-list-viewer/1206174 "2021-04-05T05:50:08Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![gt6688gtxkiyh7](https://avatars.discourse-cdn.com/v4/letter/g/858c86/32.png) [@gt6688gtxkiyh7](https://community.thunkable.com/u/gt6688gtxkiyh7)
#### Post date: [April 5, 2021, 5:50am UTC](https://community.thunkable.com/t/how-to-code-the-list-viewer/1206174/1 "2021-04-05T05:50:08Z")

</div>

Hi! I am making this Survey/form app and I need it to work so that if the user takes the “Patient symptom form,” the form name, date, and time will automatically show on the “Filled forms” listviewer. Here is what I got so far: I got the name, date, and time of the form to show on the list viewer when taken but here is the problem, I have a sign-in page connected to my firebase in my app so I don’t know how to code it to where different users will have thier own forms filled out on the “Filled Forms” list viewer. Following is a screen shots of my code (Please look at the long block of code on the left.)

 ![code](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/6/862166c94bbda968a44ac4fe952ad8e625216cf9.jpeg)

Thanks so much! Feel free to ask me for the app link if you think you can help:)

---

<div class="post-metadata">

### Author: ![jane](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jane/32/27575_2.png) [@jane](https://community.thunkable.com/u/jane)
#### Post date: [April 7, 2021, 8:51am UTC](https://community.thunkable.com/t/how-to-code-the-list-viewer/1206174/2 "2021-04-07T08:51:20Z")

</div>

Hi there,

You need to store each user’s data using a unique key.

You could use the user’s email address as a unique key, but you can also use the **userID** value that is given when a user signs in to the app:

 ![Screen Shot 2021-04-07 at 9.47.59 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/d/3d3ec448e1393284b7c51e805f4d0d91b80ec48b.png)

You can save this value as a variable in your app when the user signs in. You can then use it when you are saving data to Firebase.

The key can be **[app variable userID] / Filled Patient Symptom Form / [stored variable Password]**, instead of your current key **Filled Patient Symptom Form / [stored variable Password]**.

---

<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/how-to-code-the-list-viewer/1206174/3 "2024-11-08T13:25:33Z")

</div>


