# Create list on one screen - Display list viewer on another

**URL:** https://community.thunkable.com/t/create-list-on-one-screen-display-list-viewer-on-another/569205
**Category:** Questions about Thunkable X
**Created:** [May 16, 2020, 2:10am UTC](https://community.thunkable.com/t/create-list-on-one-screen-display-list-viewer-on-another/569205 "2020-05-16T02:10:23Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![sleon003x2rq](https://avatars.discourse-cdn.com/v4/letter/s/ecb155/32.png) [@sleon003x2rq](https://community.thunkable.com/u/sleon003x2rq)
#### Post date: [May 16, 2020, 2:10am UTC](https://community.thunkable.com/t/create-list-on-one-screen-display-list-viewer-on-another/569205/1 "2020-05-16T02:10:23Z")

</div>

Am working on the flowchart for a test I want to run.

essentially I want to save strings to a list (lk the to do list tutorial) and on another screen I want to display them. and I want the changes to be persistent so once the app is closed and opened the items added to the list are still present

so my question is…what would be the most efficient way of doing so. I thought a cloud variable/firestore, but then it seems like a local stored solution would be faster. so I’ve been reading about all the storage options and I still can decide or have dropped a single block.

suggestions?

thx

---

<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: [May 16, 2020, 3:10am UTC](https://community.thunkable.com/t/create-list-on-one-screen-display-list-viewer-on-another/569205/2 "2020-05-16T03:10:44Z")

</div>

save your list to a stored variable.

you could save it as a list of strings

so

initialize a stored var, name it ‘listOfPhrases’

on screen 1 open  
if stored listOfPhrases = null  
set stored storedd listOfPhrases as empty list

when button save clicked  
in stored listOfPhrases add last as text input

on screen 2 open  
set list viewer items as stored listOfPhrases

---

<div class="post-metadata">

### Author: ![sleon003x2rq](https://avatars.discourse-cdn.com/v4/letter/s/ecb155/32.png) [@sleon003x2rq](https://community.thunkable.com/u/sleon003x2rq)
#### Post date: [May 16, 2020, 12:41pm UTC](https://community.thunkable.com/t/create-list-on-one-screen-display-list-viewer-on-another/569205/3 "2020-05-16T12:41:01Z")

</div>

tested it real quick and works… thansk!!!

i’ve decided i want to make an address book/directory, just to teach myself other aspects of the platform. I realized I haven’t used lists or dbs at all yet.

so on one screen the information will be entered  
Name:  
Phone:  
Address:  
Email:

Save Button

Screen 2 - Shows a list of the saved names and when each item is pressed the corresponding info will be shown on another screen.

the firebase thunk x tutorial on firebase ([YouTube Link](https://www.youtube.com/watch?v=htjhe0KEFBQ)) is the same concept…

---

<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: [May 16, 2020, 12:58pm UTC](https://community.thunkable.com/t/create-list-on-one-screen-display-list-viewer-on-another/569205/4 "2020-05-16T12:58:33Z")

</div>

Perfect! Now, time to make it appear on the same screen for faster contact retrieval!

Less screens = less code = less potential issues

I only suggest this because a full screen list isn’t so attractive. With such a small amount of info, you could easily create a display dashboard below the list to display all info when a name is clicked from the list.

---

<div class="post-metadata">

### Author: ![sleon003x2rq](https://avatars.discourse-cdn.com/v4/letter/s/ecb155/32.png) [@sleon003x2rq](https://community.thunkable.com/u/sleon003x2rq)
#### Post date: [May 18, 2020, 12:43pm UTC](https://community.thunkable.com/t/create-list-on-one-screen-display-list-viewer-on-another/569205/5 "2020-05-18T12:43:26Z")

</div>

yeah that is true…very good point!

---

<div class="post-metadata">

### Author: ![sleon003x2rq](https://avatars.discourse-cdn.com/v4/letter/s/ecb155/32.png) [@sleon003x2rq](https://community.thunkable.com/u/sleon003x2rq)
#### Post date: [May 18, 2020, 5:55pm UTC](https://community.thunkable.com/t/create-list-on-one-screen-display-list-viewer-on-another/569205/6 "2020-05-18T17:55:39Z")

</div>

ahh silly question…can variable to be set to text? when I run this block it shows as an empty item on the list  
 ![txtToVar](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/f/af948d20917bd10e0223814fb64de77debd46a2a.png)

---

<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: [May 18, 2020, 6:07pm UTC](https://community.thunkable.com/t/create-list-on-one-screen-display-list-viewer-on-another/569205/7 "2020-05-18T18:07:56Z")

</div>

that does work,

the code you show would only save the item to a list though. it would not display it anywhhere

---

<div class="post-metadata">

### Author: ![sleon003x2rq](https://avatars.discourse-cdn.com/v4/letter/s/ecb155/32.png) [@sleon003x2rq](https://community.thunkable.com/u/sleon003x2rq)
#### Post date: [May 18, 2020, 8:31pm UTC](https://community.thunkable.com/t/create-list-on-one-screen-display-list-viewer-on-another/569205/8 "2020-05-18T20:31:51Z")

</div>

correct this is how I display the list, is on another screen. if is send the txt block to the list it displays no problem. But if I send it as shown the list item is blank.  
am just curious as to why.

![txt_list](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/8/28185b28904fb04533a8fa9a637a780a64f6f532.png)

---

<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: [May 18, 2020, 9:00pm UTC](https://community.thunkable.com/t/create-list-on-one-screen-display-list-viewer-on-another/569205/9 "2020-05-18T21:00:52Z")

</div>

I imagine that you have not set storedListOfPhrases as a list and instead are simply adding to an initialized variable. The variable is not a list by default, you must make it this way.

there are two ways to do this.

Set it to an empty list, or set it to be an already existing list.

otherwise its like you’re throwing a ball to someone who doesn’t know they are supposed to catch it. it’s not that they don’t get the ball, it’s that their hand is not ready to catch. You must not only create the variable, you must also set it in the blocks to be a list before adding items to the list.

---

<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, 11:29am UTC](https://community.thunkable.com/t/create-list-on-one-screen-display-list-viewer-on-another/569205/10 "2024-11-08T11:29:09Z")

</div>


