# \[Solved\] How to delete an item from a delimited list?

**URL:** <https://community.thunkable.com/t/solved-how-to-delete-an-item-from-a-delimited-list/552067>\
**Category:** Questions about Thunkable X\
**Tags:** solved, listviewer, delimited\
**Created:** [April 2, 2020, 3:16pm UTC](https://community.thunkable.com/t/solved-how-to-delete-an-item-from-a-delimited-list/552067 "2020-04-02T15:16:51Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![kartik14](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kartik14/32/44782_2.png) [@kartik14](https://community.thunkable.com/u/kartik14)\
**Post date:** [April 2, 2020, 3:16pm UTC](https://community.thunkable.com/t/solved-how-to-delete-an-item-from-a-delimited-list/552067/1 "2020-04-02T15:16:51Z")

</div>

Hi, 👋

I am making an App, where I have stored a delimited list in an Airtable cell.

The Airtable area looks like ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/9/c9be561bfdced0d35df068df6ae21263d0111d79.png).

The _ **"1,2,3,4"** _ will be set to a list-viewer, with this block

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

* * *

What I _exactly_ want is, when I select any item from the list, it should be removed from the Airtable cell.

For example, if I click _ **"3"** _ from the list, it should be removed from the list-viewer, and from the Airtable cell. Then the cell would look like - _ **"1,2,4"** _.

I tried doing it, and it didn’t work out well.

> **My blocks and the result**
>
> ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/0/30c9f87287cb0ea367262f73e0a7386e5ab9d69a.png)
> 
> Neither Airtable reflect any changes, nor the list-viewer.
> 
> * * *

**What should I do?**  
Thanks! 😊

---

<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 2, 2020, 4:01pm UTC](https://community.thunkable.com/t/solved-how-to-delete-an-item-from-a-delimited-list/552067/2 "2020-04-02T16:01:02Z")

</div>

Here you go.

 ![Screen Shot 2020-04-02 at 11.36.44 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/4/f485ce57c2fc2bb2037eaed30a2f1bfaeafab98c.png)

Remix Link:  
[https://x.thunkable.com/copy/b5053d2d80d94a42e939862dd5225be8](https://x.thunkable.com/copy/b5053d2d80d94a42e939862dd5225be8)

Preview Link:  
[https://thunk.app/w/gMGX4VX6I](https://thunk.app/w/gMGX4VX6I)

---

<div class="post-metadata">

**Author:** ![kartik14](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kartik14/32/44782_2.png) [@kartik14](https://community.thunkable.com/u/kartik14)\
**Post date:** [April 3, 2020, 5:58am UTC](https://community.thunkable.com/t/solved-how-to-delete-an-item-from-a-delimited-list/552067/3 "2020-04-03T05:58:48Z")

</div>

Hi, @jared! 👋  
Thanks for your reply! 😊

* * *

Your idea works! 👍

But, I have a small problem, which I forgot to say earlier (sorry for that) -

_Now_ I have data in Airtable like ➡ _ **1 - 2 - 3 | 4 - 5 - 6 | 7 - 8 - 9** _  
Now with _ **" | "** _ as the master delimiter. So the items in the list would look like -

> 1 - 2 - 3  
> 4 - 5 - 6  
> 7 - 8 - 9

Your provided code, ultimately joins every list with “,”. How will I choose and delete “1 - 2 - 3” from a " | " delimited list?

Thanks again! 😊

---

<div class="post-metadata">

**Author:** ![kartik14](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kartik14/32/44782_2.png) [@kartik14](https://community.thunkable.com/u/kartik14)\
**Post date:** [April 7, 2020, 3:49am UTC](https://community.thunkable.com/t/solved-how-to-delete-an-item-from-a-delimited-list/552067/4 "2020-04-07T03:49:24Z")

</div>

Hi, @jared 👋

I have dropped my above idea, and now I would like to just replace an delimited item. For example, my list is delimited with **" || "** character, and list is like **`1 || 2 || none || 4`**  
And I would like to replace the item no. 3 in the list, which is “none” with another term.

So,

- I would get the list & un-delimit it,
- Then I’ll get the 3rd term of the list, and replace it with something.
- Then delimit it again with the " || " character.
- And finally add it back to Airtable. So the new list would be **`1 || 2 || 3 || 4`**

Any help is appreciated 😺  
Thanks! 😊

---

<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 7, 2020, 3:59am UTC](https://community.thunkable.com/t/solved-how-to-delete-an-item-from-a-delimited-list/552067/5 "2020-04-07T03:59:04Z")

</div>

> [@kartik14](#):
>
> **`1 || 2 || none || 4`**

How does this work for you?

> **[thunkablecompanion](https://thunk.app/w/gMGX4VX6I)**
>
> Powered by Thunkable

[https://x.thunkable.com/copy/82bc8f3fa3f4961688f816f167b8b7c2](https://x.thunkable.com/copy/82bc8f3fa3f4961688f816f167b8b7c2)

The only thing missing is the airtable blocks. I imagine you are able to extract info from the cell you want and then to replace it.

---

<div class="post-metadata">

**Author:** ![kartik14](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kartik14/32/44782_2.png) [@kartik14](https://community.thunkable.com/u/kartik14)\
**Post date:** [April 7, 2020, 6:13am UTC](https://community.thunkable.com/t/solved-how-to-delete-an-item-from-a-delimited-list/552067/6 "2020-04-07T06:13:01Z")

</div>

Hi Jared!

## Your idea works! 😺

I just modified it according to my data, and works brilliant 👍 ✅

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/8/18fba21205c9826b753a16820f9609741bfd90fb.png)

Thanks a lot! 😊

---

<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 7, 2020, 6:23am UTC](https://community.thunkable.com/t/solved-how-to-delete-an-item-from-a-delimited-list/552067/7 "2020-04-07T06:23:47Z")

</div>

> [@kartik14](#):
>
> it according to my data, and works

Happy to help you out, man!

---

<div class="post-metadata">

**Author:** ![kartik14](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kartik14/32/44782_2.png) [@kartik14](https://community.thunkable.com/u/kartik14)\
**Post date:** [April 7, 2020, 6:48am UTC](https://community.thunkable.com/t/solved-how-to-delete-an-item-from-a-delimited-list/552067/8 "2020-04-07T06:48:27Z")

</div>

Thanks! 😺

**P.S.** You are browsing at 2AM?! 😯

---

<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 7, 2020, 6:52am UTC](https://community.thunkable.com/t/solved-how-to-delete-an-item-from-a-delimited-list/552067/9 "2020-04-07T06:52:35Z")

</div>

2:35… @domhnallohanlon mentioned It wouldn’t hurt to take a break from time to time. 😂

I just finished a 2hr Flutter Training session. My eyes hurt!

---

<div class="post-metadata">

**Author:** ![kartik14](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kartik14/32/44782_2.png) [@kartik14](https://community.thunkable.com/u/kartik14)\
**Post date:** [April 7, 2020, 6:54am UTC](https://community.thunkable.com/t/solved-how-to-delete-an-item-from-a-delimited-list/552067/10 "2020-04-07T06:54:27Z")

</div>

Man, you must be a night owl instead of a morning person 😂  
You need some sleep! 😄

---

<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-how-to-delete-an-item-from-a-delimited-list/552067/11 "2024-11-08T11:39:17Z")

</div>


