# Why can't I have duplicate values in custom state?

**URL:** <https://forum.bubble.io/t/why-cant-i-have-duplicate-values-in-custom-state/11211>\
**Category:** Need help\
**Created:** [March 6, 2017, 10:46pm UTC](https://forum.bubble.io/t/why-cant-i-have-duplicate-values-in-custom-state/11211 "2017-03-06T22:46:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![antadrag](https://avatars.discourse-cdn.com/v4/letter/a/7c8e57/32.png) [@antadrag](https://forum.bubble.io/u/antadrag)\
**Post date:** [March 6, 2017, 10:46pm UTC](https://forum.bubble.io/t/why-cant-i-have-duplicate-values-in-custom-state/11211/1 "2017-03-06T22:46:49Z")

</div>

I have a workflow setup that when the value of a dropdown is changed to set a custom state to :add item: to the custom state that was the dropdown’s value.

I then have this data displayed in a repeating group.

This works great, but if I choose something from the dropdown that is already in the custom state (ie Form Shooting), it doesn’t get added. Is there a workaround for this.

Here’s a link to my app that I’m referencing here: [http://practice.bballtools.com/version-test/offseason-shooting?debug\_mode=true](http://practice.bballtools.com/version-test/offseason-shooting?debug_mode=true)

Any help is appreciated!

---

<div class="post-metadata">

**Author:** ![sridharan.s](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/sridharan.s/32/17881_2.png) [@sridharan.s](https://forum.bubble.io/u/sridharan.s)\
**Post date:** [March 6, 2017, 11:44pm UTC](https://forum.bubble.io/t/why-cant-i-have-duplicate-values-in-custom-state/11211/2 "2017-03-06T23:44:53Z")

</div>

I could be wrong, but I think you just need to set-up the custom state as a “list” instead of a single value. Haven’t done this before myself so may be wrong about it though.

---

<div class="post-metadata">

**Author:** ![antadrag](https://avatars.discourse-cdn.com/v4/letter/a/7c8e57/32.png) [@antadrag](https://forum.bubble.io/u/antadrag)\
**Post date:** [March 7, 2017, 12:17am UTC](https://forum.bubble.io/t/why-cant-i-have-duplicate-values-in-custom-state/11211/3 "2017-03-07T00:17:20Z")

</div>

I have it as a list. Just not sure how to have the same value in a dropdown show up twice if it’s chosen twice in the repeating group. Would be thrilled if anybody can figure this out. Been hanging me up for quite some time.

---

<div class="post-metadata">

**Author:** ![mishav](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/mishav/32/6420_2.png) [@mishav](https://forum.bubble.io/u/mishav)\
**Post date:** [March 7, 2017, 12:57am UTC](https://forum.bubble.io/t/why-cant-i-have-duplicate-values-in-custom-state/11211/4 "2017-03-07T00:57:13Z")

</div>

Generally, lists are designed to prevent adding duplicates.

You can get the effect of duplicates if the list is of rows in a database table (each list item is a “thing”), and you are displaying a field of an item, and two rows have the same value for that field. This might fit your example.

A way to make a list with duplicates is if you start with a list of things, and use a field from each thing to have a list of field values.

---

<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:** [May 15, 2017, 10:55pm UTC](https://forum.bubble.io/t/why-cant-i-have-duplicate-values-in-custom-state/11211/5 "2017-05-15T22:55:16Z")

</div>

Closed on May 15, 2017, 10:55pm UTC

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