# Add Repeated items in a list

**URL:** <https://forum.bubble.io/t/add-repeated-items-in-a-list/28188>\
**Category:** Need help\
**Created:** [April 25, 2018, 2:02am UTC](https://forum.bubble.io/t/add-repeated-items-in-a-list/28188 "2018-04-25T02:02:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![felipe](https://avatars.discourse-cdn.com/v4/letter/f/90db22/32.png) [@felipe](https://forum.bubble.io/u/felipe)\
**Post date:** [April 25, 2018, 2:02am UTC](https://forum.bubble.io/t/add-repeated-items-in-a-list/28188/1 "2018-04-25T02:02:34Z")

</div>

When we add list to a thing (that was previously configured to be a list, of course), it adds only the elements that are not inside this list, making it a unique element list. However, I do need it to have repeated elements.

Example:  
Data Type: Animal  
Field: Animal Name (text, and a list)

I add:

- Horse (1x)
- Panda (2x)
- Unicorn (3x)

What I have:  
Animal Name: Horse, Panda, Unicorn

What I want to have:  
Animal Name: Horse, Panda, Panda, Unicorn, Unicorn, Unicorn

Is it possible? If so, what am I missing?  
If it is not, any ideas to work around it?

Best regards,  
Felipe

---

<div class="post-metadata">

**Author:** ![t111](https://avatars.discourse-cdn.com/v4/letter/t/c68b51/32.png) [@t111](https://forum.bubble.io/u/t111)\
**Post date:** [May 2, 2018, 6:13pm UTC](https://forum.bubble.io/t/add-repeated-items-in-a-list/28188/2 "2018-05-02T18:13:40Z")

</div>

I’m having a similar problem. In my case it’s a list of other things (which are JSON objects from an external API), and I’m hoping to get some insight into how Bubble determines the ‘uniqueness’ of the items in the list…

For example, if I want to refresh data from the external API on-demand, will it add the new item if the data is changed? Or is it (somehow) only looking at certain fields to determine if the item is unique, and therefore will never add it even if changes have been made in the data?

Let me know if you found a solution!

---

<div class="post-metadata">

**Author:** ![felipe](https://avatars.discourse-cdn.com/v4/letter/f/90db22/32.png) [@felipe](https://forum.bubble.io/u/felipe)\
**Post date:** [May 2, 2018, 8:26pm UTC](https://forum.bubble.io/t/add-repeated-items-in-a-list/28188/3 "2018-05-02T20:26:10Z")

</div>

No reply yet! ☹ And I didnt figure out myself, so far.

---

<div class="post-metadata">

**Author:** ![reger-alexander](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/reger-alexander/32/22827_2.png) [@reger-alexander](https://forum.bubble.io/u/reger-alexander)\
**Post date:** [May 2, 2018, 8:31pm UTC](https://forum.bubble.io/t/add-repeated-items-in-a-list/28188/4 "2018-05-02T20:31:35Z")

</div>

It’s not possible to add the exact same value twice in a bubble list.

It depends on your use case if a work around makes sense. You could assign unique keys to those values by creating a data type “animal types”, with a field “name” and a field “key”.

---

<div class="post-metadata">

**Author:** ![scottb50](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/scottb50/32/9334_2.png) [@scottb50](https://forum.bubble.io/u/scottb50)\
**Post date:** [May 2, 2018, 8:53pm UTC](https://forum.bubble.io/t/add-repeated-items-in-a-list/28188/5 "2018-05-02T20:53:49Z")

</div>

You could set up a state to “watch” for when an incoming API call changes your data via a custom workflow. Your users would know when a refresh is available, as you will be watching your data, not the API.

Check out

> [@Refresh Repeating Group populated by API provider mySQL](http://forum.bubble.io/t/refresh-repeating-group-populated-by-api-provider-mysql/7621):
>
> Hi, I am trying to refresh a repeating group populated by a mySQL query following a save action. The save is working fine, rows are being committed to my DB fine. The initial populating and displaying the repeating group is fine. I cannot find a way to refresh the repeating group without a page refresh? I only want to refresh that group, can someone guide me in the right direction. Thanks Vicky.

---

<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:** [July 4, 2018, 2:02am UTC](https://forum.bubble.io/t/add-repeated-items-in-a-list/28188/6 "2018-07-04T02:02:35Z")

</div>

Closed on July 4, 2018, 2:02am UTC

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