# Add & remove items from a list

**URL:** <https://forum.bubble.io/t/add-remove-items-from-a-list/133836>\
**Category:** Need help\
**Created:** [February 1, 2021, 1:30pm UTC](https://forum.bubble.io/t/add-remove-items-from-a-list/133836 "2021-02-01T13:30:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![bruno1](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/bruno1/32/76558_2.png) [@bruno1](https://forum.bubble.io/u/bruno1)\
**Post date:** [February 1, 2021, 1:30pm UTC](https://forum.bubble.io/t/add-remove-items-from-a-list/133836/1 "2021-02-01T13:30:16Z")

</div>

Hey guys,

I watched a few videos in how to add and remove information from a list of things, however, I cannot make work on my app and hope someone can help me.

So, I have two datatypes (Account Child and Contacts) there are related to each other as you can see in the screenshot below:

**Contact datatype**

 ![Account_child datatype](https://us1.discourse-cdn.com/bubble/original/3X/2/4/247854c6ca33ed5ec3084dd7ddaa5584f503aa9b.png)

**Child\_account datatype**

 ![Contact datatype](https://us1.discourse-cdn.com/bubble/original/3X/4/c/4c10465b5548548b1a5b06cab54fe07e7cc3646d.png)

I created a popup (type of content: Contact) to updated the contact information and a custom state to select the account child (video to see the frontend - [Vidyard Recording](https://share.vidyard.com/watch/CmVzJYc7h7tVqtaxBD8VEE?))

When the update button clicked, a workflow runs to update all contact information in the database, but the contact is not updated in the account child datatype.

I’m using “Make changes to a list” and using the information of the custom state to update the Account child datatype, and Bubble accept this expression but it’s not updating the database. See the screenshot of the workflow below.

**Workflow**

 ![workflow](https://us1.discourse-cdn.com/bubble/original/3X/4/6/4653d0f75feea699a9d371910029faeb0fc34e1c.png)

**Account\_child App data**

 ![Account_child contacts empty](https://us1.discourse-cdn.com/bubble/original/3X/5/d/5db2221d4e9d2f2fed9c74b62b02d9417f188981.png)

I hope someone can help me to figure out what I’m doing wrong.

Thanks,  
Bruno

---

<div class="post-metadata">

**Author:** ![cmarchan](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/cmarchan/32/253062_2.png) [@cmarchan](https://forum.bubble.io/u/cmarchan)\
**Post date:** [February 2, 2021, 4:07am UTC](https://forum.bubble.io/t/add-remove-items-from-a-list/133836/2 "2021-02-02T04:07:56Z")

</div>

Hello!

Add list … adds to a list

If your popup has the complete final list … then use :set list

Now … I noticed that you are using :plus item. This adds a single entry to a list. Like I said … if the popup has the complete list then just use :set list.

Getting the gist of single vs plural in Bubble takes a while and it comes more natural the more apps you build … or the more sophisticated you make your existing app.

Hope this makes sense and good luck with your app 👍🏻

---

<div class="post-metadata">

**Author:** ![bruno1](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/bruno1/32/76558_2.png) [@bruno1](https://forum.bubble.io/u/bruno1)\
**Post date:** [February 2, 2021, 11:35am UTC](https://forum.bubble.io/t/add-remove-items-from-a-list/133836/3 "2021-02-02T11:35:02Z")

</div>

Hey @cmarchan ,

You’re always helping me - thank you 😉

Unfortunately, my popup doesn’t have the complete list and had to use the plus item, but it’s working pure well now.

However, I’m facing a new issue: Remove the value from the previous list

I created the following workflow but it’s not picking the right value, it’s removing any value in that list. Do you have any idea what I’m doing wrong?

 ![remove list workflow](https://us1.discourse-cdn.com/bubble/original/3X/6/d/6d7671a18ccb05d060ff636780942ebd3472de4f.png)

---

<div class="post-metadata">

**Author:** ![cmarchan](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/cmarchan/32/253062_2.png) [@cmarchan](https://forum.bubble.io/u/cmarchan)\
**Post date:** [February 9, 2021, 2:28pm UTC](https://forum.bubble.io/t/add-remove-items-from-a-list/133836/4 "2021-02-09T14:28:07Z")

</div>

To remove one entry use “remove” instead of “remove list” which removes the entire list

---

<div class="post-metadata">

**Author:** ![bruno1](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/bruno1/32/76558_2.png) [@bruno1](https://forum.bubble.io/u/bruno1)\
**Post date:** [February 10, 2021, 9:16am UTC](https://forum.bubble.io/t/add-remove-items-from-a-list/133836/5 "2021-02-10T09:16:31Z")

</div>

Thanks @cmarchan!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [April 12, 2021, 1:30pm UTC](https://forum.bubble.io/t/add-remove-items-from-a-list/133836/6 "2021-04-12T13:30:51Z")

</div>

Closed on April 12, 2021, 1:30pm UTC

This topic was automatically closed after 70 days. New replies are no longer allowed.
