# Split texts and create list from texts separated by comma

**URL:** <https://community.thunkable.com/t/split-texts-and-create-list-from-texts-separated-by-comma/130327>\
**Category:** Questions about Thunkable X\
**Created:** [July 3, 2019, 11:07am UTC](https://community.thunkable.com/t/split-texts-and-create-list-from-texts-separated-by-comma/130327 "2019-07-03T11:07:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![myandriod](https://avatars.discourse-cdn.com/v4/letter/m/8e7dd6/32.png) [@myandriod](https://community.thunkable.com/u/myandriod)\
**Post date:** [July 3, 2019, 11:07am UTC](https://community.thunkable.com/t/split-texts-and-create-list-from-texts-separated-by-comma/130327/1 "2019-07-03T11:07:55Z")

</div>

Hello,

I have a list with one item, index(1) and data(one,two,three) comma separated.

I would like to create a new list from above data to split the text into 3 items and to form 3 different items as index 1:one, 2:two and 3:three

Could someone help me to achieve this?

---

<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:** [July 3, 2019, 11:32am UTC](https://community.thunkable.com/t/split-texts-and-create-list-from-texts-separated-by-comma/130327/2 "2019-07-03T11:32:10Z")

</div>

Hey @myandriod!

I’m sure there are lots of ways to go about this, but here’s my approach.

## Set up two Lists (and one function)

![05](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/b/3bfb6638c063c99f1a160589b544f92ce5993ff5.png)

## Add Items to the list and show them in the list viewer

![12](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/0/007216ee99ea4839b52534396efd1c1815bbce9f.png)

## Separate your sublists with something like this:

![18](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/f/6f16f7c069fda4a1d155525492b2bf03a896f13a.png)

## Create a reset or back button with this code:

![22](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/7/771e58b520220344126a3e65c1a86afcf46b6c51.png)

---

<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:** [July 3, 2019, 11:32am UTC](https://community.thunkable.com/t/split-texts-and-create-list-from-texts-separated-by-comma/130327/3 "2019-07-03T11:32:18Z")

</div>

Hi there,

Thunkable has a block to make a list from text/make tent form a list.  
It’s in the docs [here](https://docs.thunkable.com/lists#create-a-list).

You can see a sample app that makes a list from some text (given some text and a delimiter) [here](https://x.thunkable.com/copy/be33166807ecac47462e08503181ebb5).

---

<div class="post-metadata">

**Author:** ![myandriod](https://avatars.discourse-cdn.com/v4/letter/m/8e7dd6/32.png) [@myandriod](https://community.thunkable.com/u/myandriod)\
**Post date:** [July 4, 2019, 3:22am UTC](https://community.thunkable.com/t/split-texts-and-create-list-from-texts-separated-by-comma/130327/4 "2019-07-04T03:22:30Z")

</div>

Hi @domhnallohanlon & @jane,

Thanks for your inputs.

Here my intention is not to list the texts in list views

I have Firebase record Students,Names and I want to create a Attendance record of students

 ![List](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/9/e9c4806073c7063be84bde572fffc1d57d9e139a.jpeg)

I retrieved firebase record as JSON and formatted to single string Andrea,Arnold,Boston

My plan was to store individual names as separate item in a new list or array so I could get names one by one through index to show in UI and update the firebase record based on input(Present/Absent)

I could directly get this from Firebase record and show one by one, but it is consuming more time compare to local downloaded data.

Is there any way I can copy any Firebase Record into Local list or Database or Array in the same structure of Key and Value for different purposes?

---

<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, 12:12pm UTC](https://community.thunkable.com/t/split-texts-and-create-list-from-texts-separated-by-comma/130327/5 "2024-11-08T12:12:22Z")

</div>


