# Why do all the buttons activate when I only clicked 1? how do I stop it?

**URL:** <https://community.weweb.io/t/why-do-all-the-buttons-activate-when-i-only-clicked-1-how-do-i-stop-it/10381>\
**Category:** How do I?\
**Created:** [August 22, 2024, 3:13am UTC](https://community.weweb.io/t/why-do-all-the-buttons-activate-when-i-only-clicked-1-how-do-i-stop-it/10381 "2024-08-22T03:13:21Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![metalsteve81](https://avatars.discourse-cdn.com/v4/letter/m/53a042/32.png) [@metalsteve81](https://community.weweb.io/u/metalsteve81)\
**Post date:** [August 22, 2024, 3:13am UTC](https://community.weweb.io/t/why-do-all-the-buttons-activate-when-i-only-clicked-1-how-do-i-stop-it/10381/1 "2024-08-22T03:13:22Z")

</div>

I created an active state for some buttons.  
the buttons need to be dynamically generated from a list (thats tomorrow steves problem)  
right now, when I click 1 button, allll the buttons click and get activated.  
I tried stacking the buttons in 1 column, 1 button per row, using flex boxes instead of buttons and I think thats it.  
My workflow is true false split. if buttonIsActive=false become true, if its true, become false.  
but all buttons become true or false at the same time.

Any ideas? I obviously only want 1 button to be active at a time.

---

<div class="post-metadata">

**Author:** ![sam1](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/sam1/32/6724_2.png) [@sam1](https://community.weweb.io/u/sam1)\
**Post date:** [August 22, 2024, 3:27am UTC](https://community.weweb.io/t/why-do-all-the-buttons-activate-when-i-only-clicked-1-how-do-i-stop-it/10381/2 "2024-08-22T03:27:44Z")

</div>

sounds like you have linked all the buttons to one variable and if the variables is true there active otherwise there are not I think you need an array where if array[0] = true button in position 1 is true.

if this isn’t helpfull maybe reword your question and include some images of your set up and what you would like to occur

---

<div class="post-metadata">

**Author:** ![Broberto](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/broberto/32/5918_2.png) [@Broberto](https://community.weweb.io/u/Broberto)\
**Post date:** [August 22, 2024, 5:56am UTC](https://community.weweb.io/t/why-do-all-the-buttons-activate-when-i-only-clicked-1-how-do-i-stop-it/10381/3 "2024-08-22T05:56:34Z")

</div>

Buttons are stateless when you repeat them dynamically, you need to dynamically turn them on, or use a component, then they’ll have their internal logic.

---

<div class="post-metadata">

**Author:** ![metalsteve81](https://avatars.discourse-cdn.com/v4/letter/m/53a042/32.png) [@metalsteve81](https://community.weweb.io/u/metalsteve81)\
**Post date:** [August 22, 2024, 6:17pm UTC](https://community.weweb.io/t/why-do-all-the-buttons-activate-when-i-only-clicked-1-how-do-i-stop-it/10381/4 "2024-08-22T18:17:12Z")

</div>

ok, Ill have to look into how to generate the buttons from a list first then Ill come back to this. I, sometimes , am not sure it which order I should face my tasks  
Ive only been in the software a little under 3 weeks but with 15+ hour days I thought I would be further along in understanding it. The xano side is killing me.  
thanks for all your help everyone.

---

<div class="post-metadata">

**Author:** ![Broberto](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/broberto/32/5918_2.png) [@Broberto](https://community.weweb.io/u/Broberto)\
**Post date:** [August 22, 2024, 7:37pm UTC](https://community.weweb.io/t/why-do-all-the-buttons-activate-when-i-only-clicked-1-how-do-i-stop-it/10381/5 "2024-08-22T19:37:11Z")

</div>

You can do it man, at this point you’re one of us

---

<div class="post-metadata">

**Author:** ![metalsteve81](https://avatars.discourse-cdn.com/v4/letter/m/53a042/32.png) [@metalsteve81](https://community.weweb.io/u/metalsteve81)\
**Post date:** [August 22, 2024, 8:49pm UTC](https://community.weweb.io/t/why-do-all-the-buttons-activate-when-i-only-clicked-1-how-do-i-stop-it/10381/6 "2024-08-22T20:49:06Z")

</div>

I appreciate that, thank you
