# \[Solved\] List Viewer and grabbing text from lists

**URL:** <https://community.thunkable.com/t/solved-list-viewer-and-grabbing-text-from-lists/550409>\
**Category:** Questions about Thunkable X\
**Tags:** solved\
**Created:** [April 1, 2020, 6:48pm UTC](https://community.thunkable.com/t/solved-list-viewer-and-grabbing-text-from-lists/550409 "2020-04-01T18:48:53Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![vadenhal](https://avatars.discourse-cdn.com/v4/letter/v/df705f/32.png) [@vadenhal](https://community.thunkable.com/u/vadenhal)\
**Post date:** [April 1, 2020, 6:48pm UTC](https://community.thunkable.com/t/solved-list-viewer-and-grabbing-text-from-lists/550409/1 "2020-04-01T18:48:53Z")

</div>

Hi! So, here’s the deal. I’m making a translation app and have a function where users can add lines of text to a list, then view that list on a separate screen. I’m trying to add another function where a user can tap an item on that list that they added which then grabs that text and tosses it back through the translator. My question is, how do I write the code that copies text from a single item in a list? I can handle the other bits.

As for the bug, I can’t get the list viewer to show up on my mobile (iPhone 8+), but it shows up fine on the computer simulated thunkable phone. Is there a fix for this?

Please let me know. Thanks! (Keep in mind the list can change at any time because it is user controlled – it can be cleared or added to indefinitely.)

---

<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:** [April 1, 2020, 7:11pm UTC](https://community.thunkable.com/t/solved-list-viewer-and-grabbing-text-from-lists/550409/2 "2020-04-01T19:11:53Z")

</div>

> [@vadenhal](#):
>
> view that list on a separate screen. I’m trying to add another function where a user can tap an item on that list that they added which then grabs that text and tosses it back through the translator. My question is, how do I write the code that copies text from a single item in a list? I can handle the other bits.
> 
> As for the bug, I can’t get the list viewer to show up on my mobile (iPhone 8+), but it shows up fine on the computer simulated thunkable

the event handler for the list viewer has onClick even ‘data output block’. that is the text from the list item

---

<div class="post-metadata">

**Author:** ![vadenhal](https://avatars.discourse-cdn.com/v4/letter/v/df705f/32.png) [@vadenhal](https://community.thunkable.com/u/vadenhal)\
**Post date:** [April 1, 2020, 7:56pm UTC](https://community.thunkable.com/t/solved-list-viewer-and-grabbing-text-from-lists/550409/3 "2020-04-01T19:56:01Z")

</div>

Many thanks, this works out. Any clue on the list viewer not showing on mobile, or is that likely a my-end problem? I’m using the thunkable live test app on my phone.

---

<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:** [April 1, 2020, 8:56pm UTC](https://community.thunkable.com/t/solved-list-viewer-and-grabbing-text-from-lists/550409/4 "2020-04-01T20:56:32Z")

</div>

I’ve seen issues where the live viewer will do stuff that a phone won’t. It’s unusual though. Can you post a screenshot of the blocks you use to populate your list viewer?

---

<div class="post-metadata">

**Author:** ![vadenhal](https://avatars.discourse-cdn.com/v4/letter/v/df705f/32.png) [@vadenhal](https://community.thunkable.com/u/vadenhal)\
**Post date:** [April 1, 2020, 10:01pm UTC](https://community.thunkable.com/t/solved-list-viewer-and-grabbing-text-from-lists/550409/5 "2020-04-01T22:01:21Z")

</div>

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

Here’s what I’m working with. I’ve since had a new error come up. On my computer only, this screen functions as intended. On both my phone and on my peers’ computers, the My Phrases screen causes the app to go full-white and freeze. I think this error may have something to do with the stored variable, though I’m unsure.

The previous bug simply wouldn’t display the list viewer, but now I need to solve this first. If you would like me to include a share link, please let me know.

Thanks very much!

---

<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:** [April 1, 2020, 10:19pm UTC](https://community.thunkable.com/t/solved-list-viewer-and-grabbing-text-from-lists/550409/6 "2020-04-01T22:19:23Z")

</div>

Do you have this variable set as an empty list? You can’t initialize a stored variable as such. So I wonder, did you let the variable know it needed to behave like a list

This could be accomplished with a simple logic statement on screen open. If var = null set as empty list else do nothing

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/b/fbe22e54b27218bfb2259a735f038e5d15aaf76d.jpeg)

---

<div class="post-metadata">

**Author:** ![vadenhal](https://avatars.discourse-cdn.com/v4/letter/v/df705f/32.png) [@vadenhal](https://community.thunkable.com/u/vadenhal)\
**Post date:** [April 1, 2020, 11:42pm UTC](https://community.thunkable.com/t/solved-list-viewer-and-grabbing-text-from-lists/550409/7 "2020-04-01T23:42:41Z")

</div>

That was it. You’re a lifesaver. Thank you!

---

<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:** [April 1, 2020, 11:53pm UTC](https://community.thunkable.com/t/solved-list-viewer-and-grabbing-text-from-lists/550409/8 "2020-04-01T23:53:48Z")

</div>

Would you be as kind as marking my post as the solution? 🙂

---

<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:39am UTC](https://community.thunkable.com/t/solved-list-viewer-and-grabbing-text-from-lists/550409/9 "2024-11-08T11:39:30Z")

</div>


