# How do I get values from Local Storage?

**URL:** <https://community.thunkable.com/t/how-do-i-get-values-from-local-storage/1255577>\
**Category:** Questions about Thunkable X\
**Created:** [April 30, 2021, 5:29pm UTC](https://community.thunkable.com/t/how-do-i-get-values-from-local-storage/1255577 "2021-04-30T17:29:01Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![shirsathdhruvau](https://avatars.discourse-cdn.com/v4/letter/s/bbce88/32.png) [@shirsathdhruvau](https://community.thunkable.com/u/shirsathdhruvau)\
**Post date:** [April 30, 2021, 5:29pm UTC](https://community.thunkable.com/t/how-do-i-get-values-from-local-storage/1255577/1 "2021-04-30T17:29:01Z")

</div>

Hello!  
the thunkable bug is that whenever i get the value from local storage and add to list viewer the every letter comes specific so what is the solution

And I am also using realtime dbi

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [April 30, 2021, 5:31pm UTC](https://community.thunkable.com/t/how-do-i-get-values-from-local-storage/1255577/3 "2021-04-30T17:31:54Z")

</div>

Hi @shirsathdhruvau

Can you share a screenshot of the blocks you are using please?

You can get each item like this by using the list blocks.

---

<div class="post-metadata">

**Author:** ![shirsathdhruvau](https://avatars.discourse-cdn.com/v4/letter/s/bbce88/32.png) [@shirsathdhruvau](https://community.thunkable.com/u/shirsathdhruvau)\
**Post date:** [April 30, 2021, 5:34pm UTC](https://community.thunkable.com/t/how-do-i-get-values-from-local-storage/1255577/4 "2021-04-30T17:34:33Z")

</div>

This is the screenshot  
 ![30.04.2021_23.03.27_REC](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/b/9b7c40ac00a9e6da8f9898ccf0d692aecba96e09.png)

---

<div class="post-metadata">

**Author:** ![shirsathdhruvau](https://avatars.discourse-cdn.com/v4/letter/s/bbce88/32.png) [@shirsathdhruvau](https://community.thunkable.com/u/shirsathdhruvau)\
**Post date:** [April 30, 2021, 5:35pm UTC](https://community.thunkable.com/t/how-do-i-get-values-from-local-storage/1255577/5 "2021-04-30T17:35:20Z")

</div>

I am not able to understand

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [April 30, 2021, 5:48pm UTC](https://community.thunkable.com/t/how-do-i-get-values-from-local-storage/1255577/6 "2021-04-30T17:48:01Z")

</div>

You need to share a screenshot of the blocks you are using to generate that display. Without seeing the blocks, we have no way of knowing what’s wrong.

---

<div class="post-metadata">

**Author:** ![shirsathdhruvau](https://avatars.discourse-cdn.com/v4/letter/s/bbce88/32.png) [@shirsathdhruvau](https://community.thunkable.com/u/shirsathdhruvau)\
**Post date:** [April 30, 2021, 5:55pm UTC](https://community.thunkable.com/t/how-do-i-get-values-from-local-storage/1255577/7 "2021-04-30T17:55:24Z")

</div>

![30.04.2021_23.24.52_REC](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/b/0bbc139fc36ae61e4bf614b9f7a10f598d7c8ad1.png)

---

<div class="post-metadata">

**Author:** ![shirsathdhruvau](https://avatars.discourse-cdn.com/v4/letter/s/bbce88/32.png) [@shirsathdhruvau](https://community.thunkable.com/u/shirsathdhruvau)\
**Post date:** [April 30, 2021, 5:55pm UTC](https://community.thunkable.com/t/how-do-i-get-values-from-local-storage/1255577/8 "2021-04-30T17:55:52Z")

</div>

And yes i have not done the all coding

---

<div class="post-metadata">

**Author:** ![shirsathdhruvau](https://avatars.discourse-cdn.com/v4/letter/s/bbce88/32.png) [@shirsathdhruvau](https://community.thunkable.com/u/shirsathdhruvau)\
**Post date:** [April 30, 2021, 5:59pm UTC](https://community.thunkable.com/t/how-do-i-get-values-from-local-storage/1255577/9 "2021-04-30T17:59:28Z")

</div>

I am sorry I have just updated my coding

 ![30.04.2021_23.28.11_REC](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/b/fb4cffef8b43cdf8f8d21e1c5118b9ec8248f297.png)

---

<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:** [April 30, 2021, 6:02pm UTC](https://community.thunkable.com/t/how-do-i-get-values-from-local-storage/1255577/10 "2021-04-30T18:02:40Z")

</div>

You are trying to show **text** string as **List**. What else would you expect???

---

<div class="post-metadata">

**Author:** ![shirsathdhruvau](https://avatars.discourse-cdn.com/v4/letter/s/bbce88/32.png) [@shirsathdhruvau](https://community.thunkable.com/u/shirsathdhruvau)\
**Post date:** [April 30, 2021, 6:03pm UTC](https://community.thunkable.com/t/how-do-i-get-values-from-local-storage/1255577/11 "2021-04-30T18:03:16Z")

</div>

Sorry i don’t understand

---

<div class="post-metadata">

**Author:** ![shirsathdhruvau](https://avatars.discourse-cdn.com/v4/letter/s/bbce88/32.png) [@shirsathdhruvau](https://community.thunkable.com/u/shirsathdhruvau)\
**Post date:** [April 30, 2021, 6:04pm UTC](https://community.thunkable.com/t/how-do-i-get-values-from-local-storage/1255577/12 "2021-04-30T18:04:37Z")

</div>

Yes but i have not completed my coding

---

<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:** [April 30, 2021, 6:05pm UTC](https://community.thunkable.com/t/how-do-i-get-values-from-local-storage/1255577/13 "2021-04-30T18:05:05Z")

</div>

The` List Viewer` expects a list not a single line of text. Of you see the content of the `List Viewer` and combine them together you will see that this is the text of your first inout.

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [April 30, 2021, 6:08pm UTC](https://community.thunkable.com/t/how-do-i-get-values-from-local-storage/1255577/14 "2021-04-30T18:08:07Z")

</div>

Yep, you need to provide a list for the List Viewer to display. You’re giving it a value of a single list item which is a text string.

It’s the difference between setting List\_Viewer1’s text items to a list that has the value {apple, orange, lemon} which will display this:

apple  
orange  
lemon

And setting List\_Viewer1’s text items to “apple” which will display this:

a  
p  
p  
l  
e

---

<div class="post-metadata">

**Author:** ![shirsathdhruvau](https://avatars.discourse-cdn.com/v4/letter/s/bbce88/32.png) [@shirsathdhruvau](https://community.thunkable.com/u/shirsathdhruvau)\
**Post date:** [April 30, 2021, 6:10pm UTC](https://community.thunkable.com/t/how-do-i-get-values-from-local-storage/1255577/15 "2021-04-30T18:10:06Z")

</div>

How should i do that

---

<div class="post-metadata">

**Author:** ![shirsathdhruvau](https://avatars.discourse-cdn.com/v4/letter/s/bbce88/32.png) [@shirsathdhruvau](https://community.thunkable.com/u/shirsathdhruvau)\
**Post date:** [April 30, 2021, 6:12pm UTC](https://community.thunkable.com/t/how-do-i-get-values-from-local-storage/1255577/16 "2021-04-30T18:12:34Z")

</div>

How should i do that tatiang

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [April 30, 2021, 6:14pm UTC](https://community.thunkable.com/t/how-do-i-get-values-from-local-storage/1255577/17 "2021-04-30T18:14:29Z")

</div>

If you’re storing your list items in the variable “al” then just replace “in list [value] get #1” with “al”

Just for practice, try making a simple list (e.g. {1, 2, 3} which is the default list block) and attach it to a List Viewer to see how it displays.

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

This might help:

[https://docs.thunkable.com/v/drag-and-drop/list-viewer](https://docs.thunkable.com/v/drag-and-drop/list-viewer)

---

<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:** [April 30, 2021, 6:18pm UTC](https://community.thunkable.com/t/how-do-i-get-values-from-local-storage/1255577/18 "2021-04-30T18:18:35Z")

</div>

The code you have

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/0/b0ee0fcb4f43be588a04237bc744e509cb0603fb.png)  
Is giving the `List Viewer` one single item.

Remove the blue block and assign the List Viewer1’s text items to app variable al  
you it direct without any other blocks in between.

---

<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:22pm UTC](https://community.thunkable.com/t/how-do-i-get-values-from-local-storage/1255577/19 "2024-11-08T13:22:47Z")

</div>


