# Change multiple states on one action

**URL:** <https://forum.bubble.io/t/change-multiple-states-on-one-action/9337>\
**Category:** Implemented\
**Created:** [January 7, 2017, 3:20pm UTC](https://forum.bubble.io/t/change-multiple-states-on-one-action/9337 "2017-01-07T15:20:48Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![philledille](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/philledille/32/6558_2.png) [@philledille](https://forum.bubble.io/u/philledille)\
**Post date:** [January 7, 2017, 3:20pm UTC](https://forum.bubble.io/t/change-multiple-states-on-one-action/9337/1 "2017-01-07T15:20:49Z")

</div>

Would be nice to change multiple States for an Element in one Action, as possible with changing Things.

---

<div class="post-metadata">

**Author:** ![nicolas.daprigny](https://avatars.discourse-cdn.com/v4/letter/n/b38774/32.png) [@nicolas.daprigny](https://forum.bubble.io/u/nicolas.daprigny)\
**Post date:** [January 7, 2017, 4:13pm UTC](https://forum.bubble.io/t/change-multiple-states-on-one-action/9337/2 "2017-01-07T16:13:54Z")

</div>

you mean Custom states for Elements inside a Repeating Group ?

---

<div class="post-metadata">

**Author:** ![philledille](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/philledille/32/6558_2.png) [@philledille](https://forum.bubble.io/u/philledille)\
**Post date:** [January 7, 2017, 7:16pm UTC](https://forum.bubble.io/t/change-multiple-states-on-one-action/9337/3 "2017-01-07T19:16:09Z")

</div>

No, not necessarily in a Repeating group. I have several States on a Group I want to change at the same time.

---

<div class="post-metadata">

**Author:** ![NigelG](https://avatars.discourse-cdn.com/v4/letter/n/ea5d25/32.png) [@NigelG](https://forum.bubble.io/u/NigelG)\
**Post date:** [January 8, 2017, 9:22am UTC](https://forum.bubble.io/t/change-multiple-states-on-one-action/9337/4 "2017-01-08T09:22:08Z")

</div>

Are you trying to change multiple States to the same value ? Assuming they are all the same type".

---

<div class="post-metadata">

**Author:** ![philledille](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/philledille/32/6558_2.png) [@philledille](https://forum.bubble.io/u/philledille)\
**Post date:** [January 8, 2017, 11:23am UTC](https://forum.bubble.io/t/change-multiple-states-on-one-action/9337/5 "2017-01-08T11:23:04Z")

</div>

Some of them are of the same type, and at some points they could be changed into the same value - typically setting all to initial values (i.e. 0). But the real benefit would be to put all into one Action whatever type and value each is and should be set to.

---

<div class="post-metadata">

**Author:** ![romanmg](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/romanmg/32/237672_2.png) [@romanmg](https://forum.bubble.io/u/romanmg)\
**Post date:** [January 8, 2017, 3:10pm UTC](https://forum.bubble.io/t/change-multiple-states-on-one-action/9337/6 "2017-01-08T15:10:03Z")

</div>

Oh like a “set a list of states” action and then you’d select the state type and change values in bulk? I can’t think of a great use case now, but clearing a bunch of states in 1 action could be useful and maybe other value changes that allow you to use “this state’s value” with modifiers could create further flexibility.

---

<div class="post-metadata">

**Author:** ![philledille](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/philledille/32/6558_2.png) [@philledille](https://forum.bubble.io/u/philledille)\
**Post date:** [January 8, 2017, 4:04pm UTC](https://forum.bubble.io/t/change-multiple-states-on-one-action/9337/7 "2017-01-08T16:04:35Z")

</div>

I use states for local variables so that I don’t have to wait for network traffic to finish (as with Things). Therefore I get a lot of Actions in a row setting the different states (of different types to different values):

 ![](https://us1.discourse-cdn.com/bubble/original/2X/a/a2f13b4e2390badf8c8d4a12d1a362d003285ef9.png)

---

<div class="post-metadata">

**Author:** ![katcabin-bubble](https://avatars.discourse-cdn.com/v4/letter/k/b77776/32.png) [@katcabin-bubble](https://forum.bubble.io/u/katcabin-bubble)\
**Post date:** [January 13, 2017, 5:38pm UTC](https://forum.bubble.io/t/change-multiple-states-on-one-action/9337/8 "2017-01-13T17:38:43Z")

</div>

It would definitely be nice to clear all states with one action!

---

<div class="post-metadata">

**Author:** ![mente12](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/mente12/32/30410_2.png) [@mente12](https://forum.bubble.io/u/mente12)\
**Post date:** [August 24, 2017, 6:02pm UTC](https://forum.bubble.io/t/change-multiple-states-on-one-action/9337/9 "2017-08-24T18:02:33Z")

</div>

> [@nicolas.daprigny](#):
>
> Custom states for Elements inside a Repeating Group

For me that’s what I am looking to do. I want a row to turn RED if an item in the row has a specific value. I tried the following.

1. On element is an input field which holds a value from the database. Say “NOT OK”
2. I created an event when input field changes set state of this input to NO
3. Then in the condition of the group (containing all elements in a row) Background = 

But the state is never set. It might not work because Bubble may not consider the element as being in every row. Could it be something like that?

Do you know what’s going on?
