# How do i make a list repeat itself?

**URL:** <https://community.thunkable.com/t/how-do-i-make-a-list-repeat-itself/48447>\
**Category:** Questions about Thunkable X\
**Created:** [September 23, 2018, 8:14pm UTC](https://community.thunkable.com/t/how-do-i-make-a-list-repeat-itself/48447 "2018-09-23T20:14:02Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Laura\_Griffith](https://avatars.discourse-cdn.com/v4/letter/l/b5a626/32.png) [@Laura\_Griffith](https://community.thunkable.com/u/Laura_Griffith)\
**Post date:** [September 23, 2018, 8:14pm UTC](https://community.thunkable.com/t/how-do-i-make-a-list-repeat-itself/48447/1 "2018-09-23T20:14:02Z")

</div>

![56%20PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/f/cf4cd553639d7176d418f8076212f575ea024cc1.png)

I’m trying to create a page where I have a button and every time it’s clicked new text appears. and the list of text repeats. Someone from Thunkable sent me a screen shot and I copied it EXACTLY, but it’s not working. (See attached) It goes through my list once, it says undefined at the end and stops with no repeat. What am I doing wrong? Please send me a screen shot because explaining in engineer means nothing to me 🙂 I have a MA in teaching, not engineering. It’s like reading Chinese, these forums 🙂 I can only copy pictures because I’ll admit I’m not understanding this one bit. Trying to create something for my students. 🙂 I understand pictures and the youtube videos and that’s about it. 🙂 Thanks!!

---

<div class="post-metadata">

**Author:** ![cttricks](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/cttricks/32/93678_2.png) [@cttricks](https://community.thunkable.com/u/cttricks)\
**Post date:** [September 23, 2018, 11:14pm UTC](https://community.thunkable.com/t/how-do-i-make-a-list-repeat-itself/48447/2 "2018-09-23T23:14:28Z")

</div>

**Hello** @Laura_Griffith  
try this

 ![Screenshot%20(227)](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/f/4fafdac7031896cd2a8ff5b8736c9e92d3f07bdc.png)

/ **Ct tricks**

---

<div class="post-metadata">

**Author:** ![Laura\_Griffith](https://avatars.discourse-cdn.com/v4/letter/l/b5a626/32.png) [@Laura\_Griffith](https://community.thunkable.com/u/Laura_Griffith)\
**Post date:** [September 23, 2018, 11:54pm UTC](https://community.thunkable.com/t/how-do-i-make-a-list-repeat-itself/48447/3 "2018-09-23T23:54:53Z")

</div>

Thank you.  
I have checked and checked and done exactly that, but now when I open the app on my phone I push the button once and the text reads the third entry of my list. I push the button again and it says “undefined” and thats it. No repeating and doesn’t even read my whole list. Now it’s worse.

---

<div class="post-metadata">

**Author:** ![Laura\_Griffith](https://avatars.discourse-cdn.com/v4/letter/l/b5a626/32.png) [@Laura\_Griffith](https://community.thunkable.com/u/Laura_Griffith)\
**Post date:** [September 23, 2018, 11:59pm UTC](https://community.thunkable.com/t/how-do-i-make-a-list-repeat-itself/48447/4 "2018-09-23T23:59:29Z")

</div>

Oh wait. Now suddenly it’s working! I think the connection between my computer and phone was off somehow. I’m having very delayed reactions to changes. THANK YOU SOOOO MUCH! THREE WEEKS I’VE BEEN WORKING ON THIS WITH THUNKABLE. OMG. 🙂

---

<div class="post-metadata">

**Author:** ![Laura\_Griffith](https://avatars.discourse-cdn.com/v4/letter/l/b5a626/32.png) [@Laura\_Griffith](https://community.thunkable.com/u/Laura_Griffith)\
**Post date:** [September 24, 2018, 12:06am UTC](https://community.thunkable.com/t/how-do-i-make-a-list-repeat-itself/48447/5 "2018-09-24T00:06:19Z")

</div>

I assume if I make the list number, I just up the number “5” to the number of things in my list? Also, do you know how to make it so that when a user opens the app it goes to the place in the list they left off instead of the beginning. Currently on my branding screen I have this (see photo). I want it to continue showing the branding screen and then going to my button/list, but even if the user closes the app it goes to the place in the list where they left off. Thanks! ![44%20PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/d/bd38947c5c44874eaaf2f3d811579f1132111aa4.png)

---

<div class="post-metadata">

**Author:** ![cttricks](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/cttricks/32/93678_2.png) [@cttricks](https://community.thunkable.com/u/cttricks)\
**Post date:** [September 24, 2018, 6:36pm UTC](https://community.thunkable.com/t/how-do-i-make-a-list-repeat-itself/48447/6 "2018-09-24T18:36:09Z")

</div>

It means, If a user left the app at no 3 ( list no. 3 ) and when he/she opens it again then you want to show the list form no 3 not from no 1.

Am i right ?

---

<div class="post-metadata">

**Author:** ![AcrobatEpee](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/acrobatepee/32/26336_2.png) [@AcrobatEpee](https://community.thunkable.com/u/AcrobatEpee)\
**Post date:** [September 24, 2018, 6:46pm UTC](https://community.thunkable.com/t/how-do-i-make-a-list-repeat-itself/48447/7 "2018-09-24T18:46:46Z")

</div>

Just save your last position in a localstorage and when you reopen the screen check the number stored and get the list number associated (for example your used left at no3, save in the local storage as key : “whatever” and value : 3)  
When the user comes back set when screen opened get from localstorage (same key) and place the number in your “In my list get # value”

Don’t forget to set your variable again 😉

---

<div class="post-metadata">

**Author:** ![Laura\_Griffith](https://avatars.discourse-cdn.com/v4/letter/l/b5a626/32.png) [@Laura\_Griffith](https://community.thunkable.com/u/Laura_Griffith)\
**Post date:** [September 25, 2018, 12:25am UTC](https://community.thunkable.com/t/how-do-i-make-a-list-repeat-itself/48447/8 "2018-09-25T00:25:42Z")

</div>

Sorry, my MA is in teaching, not engineering. You’re not speaking my language 🙂 Can you send a screen shot?

---

<div class="post-metadata">

**Author:** ![Laura\_Griffith](https://avatars.discourse-cdn.com/v4/letter/l/b5a626/32.png) [@Laura\_Griffith](https://community.thunkable.com/u/Laura_Griffith)\
**Post date:** [September 25, 2018, 12:26am UTC](https://community.thunkable.com/t/how-do-i-make-a-list-repeat-itself/48447/9 "2018-09-25T00:26:29Z")

</div>

Sorry, meant to say if I make the LIST longer, I just change the number 5 to the length of the list, right?  
I tried it out and it worked.

---

<div class="post-metadata">

**Author:** ![Laura\_Griffith](https://avatars.discourse-cdn.com/v4/letter/l/b5a626/32.png) [@Laura\_Griffith](https://community.thunkable.com/u/Laura_Griffith)\
**Post date:** [September 25, 2018, 12:43am UTC](https://community.thunkable.com/t/how-do-i-make-a-list-repeat-itself/48447/10 "2018-09-25T00:43:44Z")

</div>

(I don’t even know if you’re answering my first question or the 2nd. If it’s the first I figured it out already, thanks. 🙂 )

---

<div class="post-metadata">

**Author:** ![cttricks](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/cttricks/32/93678_2.png) [@cttricks](https://community.thunkable.com/u/cttricks)\
**Post date:** [September 25, 2018, 9:53am UTC](https://community.thunkable.com/t/how-do-i-make-a-list-repeat-itself/48447/11 "2018-09-25T09:53:40Z")

</div>

**Hello** @Laura_Griffith  
try these blocks !

 ![Screenshot%20(231)](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/5/c5ebed6cb7d981c349e8dd084e385be4802d2cea.png)

According to this, when a user reopens the app the list position will automatically be set, where the user left it.

/Ct tricks

---

<div class="post-metadata">

**Author:** ![Laura\_Griffith](https://avatars.discourse-cdn.com/v4/letter/l/b5a626/32.png) [@Laura\_Griffith](https://community.thunkable.com/u/Laura_Griffith)\
**Post date:** [September 26, 2018, 12:52am UTC](https://community.thunkable.com/t/how-do-i-make-a-list-repeat-itself/48447/12 "2018-09-26T00:52:05Z")

</div>

Thank you!  
Just checking…I put this with the blocks on the page where I have the list? Someone from Thunkable sent me something that I put on the branding screen. (It didn’t work and they’ve sent me multiple fixes…but all code for the branding screen).

---

<div class="post-metadata">

**Author:** ![Laura\_Griffith](https://avatars.discourse-cdn.com/v4/letter/l/b5a626/32.png) [@Laura\_Griffith](https://community.thunkable.com/u/Laura_Griffith)\
**Post date:** [September 26, 2018, 1:02am UTC](https://community.thunkable.com/t/how-do-i-make-a-list-repeat-itself/48447/13 "2018-09-26T01:02:10Z")

</div>

![asdf](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/6/a6ab88df6ae0ef6de61e9f98851316d7428c7843.png)

---

<div class="post-metadata">

**Author:** ![Laura\_Griffith](https://avatars.discourse-cdn.com/v4/letter/l/b5a626/32.png) [@Laura\_Griffith](https://community.thunkable.com/u/Laura_Griffith)\
**Post date:** [September 26, 2018, 1:18am UTC](https://community.thunkable.com/t/how-do-i-make-a-list-repeat-itself/48447/14 "2018-09-26T01:18:16Z")

</div>

I think you meant a ≠? I tried it and several others and now when I push my button the text doesn’t change at all. ??

---

<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:55am UTC](https://community.thunkable.com/t/how-do-i-make-a-list-repeat-itself/48447/15 "2024-11-08T11:55:24Z")

</div>


