# Add to Array / Remove from Array

**URL:** https://community.glideapps.com/t/add-to-array-remove-from-array/25568
**Category:** Feature Requests
**Created:** [April 15, 2021, 12:10am UTC](https://community.glideapps.com/t/add-to-array-remove-from-array/25568 "2021-04-15T00:10:32Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![ilimp](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/ilimp/32/12111_2.png) [@ilimp](https://community.glideapps.com/u/ilimp)
#### Post date: [April 15, 2021, 12:10am UTC](https://community.glideapps.com/t/add-to-array-remove-from-array/25568/1 "2021-04-15T00:10:32Z")

</div>

Learning Trebuchet method by Roberto and Lucas make myself little bit confused. Because this complicated technique is actually doing very simple thing: Remove Item from List (array) or Add Item to List (array). That definetly should be just a new action: Add/Remove Item. We need it, otherwise it will stay as a possibility only for real experts in Glide.

For comparison, in Adalo you can easily work with arrays by add or remove items.

---

<div class="post-metadata">

### Author: ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)
#### Post date: [April 15, 2021, 1:13am UTC](https://community.glideapps.com/t/add-to-array-remove-from-array/25568/2 "2021-04-15T01:13:52Z")

</div>

Brilliant!

---

<div class="post-metadata">

### Author: ![Lucas\_Pires](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/lucas_pires/32/64863_2.png) [@Lucas\_Pires](https://community.glideapps.com/u/Lucas_Pires)
#### Post date: [April 15, 2021, 3:39am UTC](https://community.glideapps.com/t/add-to-array-remove-from-array/25568/3 "2021-04-15T03:39:39Z")

</div>

Soon I’ll post how I use the method to remove from an array

---

<div class="post-metadata">

### Author: ![Lucas\_Pires](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/lucas_pires/32/64863_2.png) [@Lucas\_Pires](https://community.glideapps.com/u/Lucas_Pires)
#### Post date: [April 15, 2021, 3:24pm UTC](https://community.glideapps.com/t/add-to-array-remove-from-array/25568/4 "2021-04-15T15:24:38Z")

</div>

Just to confirm the idea, what would be a real cenario to add/remove from an array?

---

<div class="post-metadata">

### Author: ![Steven](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/steven/32/15309_2.png) [@Steven](https://community.glideapps.com/u/Steven)
#### Post date: [April 15, 2021, 3:47pm UTC](https://community.glideapps.com/t/add-to-array-remove-from-array/25568/5 "2021-04-15T15:47:11Z")

</div>

Here is a few that I can think of off the top of my head:

- Add user to a marketing list

- Category List

- Favorites List

- Toppings List

- Shopping Cart

---

<div class="post-metadata">

### Author: ![Lucas\_Pires](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/lucas_pires/32/64863_2.png) [@Lucas\_Pires](https://community.glideapps.com/u/Lucas_Pires)
#### Post date: [April 17, 2021, 6:29pm UTC](https://community.glideapps.com/t/add-to-array-remove-from-array/25568/6 "2021-04-17T18:29:10Z")

</div>

hey @ilimp, just posted how to do it!

> [@\[Advanced\] Trebuchet Method link - List of Items/users in one cell!](https://community.glideapps.com/t/tutorial-trebuchet-method-list-of-items-users-in-one-cell/25688):
>
> #1 - Learn how to implement the method in your app. #2 - Learn how to remove an item from an array. star Trebuchet Method works in public & public with email apps! COPY THE APP FOR FREE Points of attention: We gotta pay attention in the minimal details because in almost every time we’re adding informations to another place, and all the columns must have values in every row (like tamplate, IFE, join list, split list), so when we click, our “current” row pick the …

---

<div class="post-metadata">

### Author: ![Harry\_OBrien](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/harry_obrien/32/14485_2.png) [@Harry\_OBrien](https://community.glideapps.com/u/Harry_OBrien)
#### Post date: [May 26, 2021, 10:41pm UTC](https://community.glideapps.com/t/add-to-array-remove-from-array/25568/7 "2021-05-26T22:41:33Z")

</div>

Completely agree, the trebuchet method is really cool but is a pain to learn & implement. Also adds unnecessary bulk.

Add & Remove items in a list/array seems like an obvious solution.

Ive managed it thanks to Rob & Lucas sharing great videos, it just feels super hacky. An action would be better for everyone, particularly beginners!

---

<div class="post-metadata">

### Author: ![Paolo\_Falconi](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/paolo_falconi/32/1019_2.png) [@Paolo\_Falconi](https://community.glideapps.com/u/Paolo_Falconi)
#### Post date: [April 28, 2023, 6:59pm UTC](https://community.glideapps.com/t/add-to-array-remove-from-array/25568/8 "2023-04-28T18:59:24Z")

</div>

I have an array that brings the months of the sales per user, but I only want to show the current month (“which is 4”) removing the other months (in this case only the number “3”).

Basically, I want to show the monthly sales per user, not the total sales in the year.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/8/0/809f65adbcf7d95cd2ab466b7b4043df7201a66e.png)

---

<div class="post-metadata">

### Author: ![gvalero](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/gvalero/32/1037_2.png) [@gvalero](https://community.glideapps.com/u/gvalero)
#### Post date: [April 29, 2023, 12:19pm UTC](https://community.glideapps.com/t/add-to-array-remove-from-array/25568/9 "2023-04-29T12:19:45Z")

</div>

Hola!

To get access to a particular array position (item), you can use a Single Value Column.

Set your array as “From” parameter and select the position via Get-\>From Start

> **[Glide • Single Value Column](https://www.glideapps.com/docs/reference/computed-columns/single-value-column)**
>
> Retrieve a single value from a column or relation.

Saludos!
