# Toggle and UnToggle button

**URL:** <https://forum.bubble.io/t/toggle-and-untoggle-button/271789>\
**Category:** Questions\
**Created:** [July 10, 2023, 9:50am UTC](https://forum.bubble.io/t/toggle-and-untoggle-button/271789 "2023-07-10T09:50:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![cvnfortnite](https://avatars.discourse-cdn.com/v4/letter/c/67e7ee/32.png) [@cvnfortnite](https://forum.bubble.io/u/cvnfortnite)\
**Post date:** [July 10, 2023, 9:50am UTC](https://forum.bubble.io/t/toggle-and-untoggle-button/271789/1 "2023-07-10T09:50:40Z")

</div>

Creating a custom state where a button changes color on click is not a problem, but i can’t figure out how to make it possible to unclick that button again. I have looked for an answer here on the forum, but can’t really find anything specific.  
I’m pretty sure it’s a relatively simple solution, but i just can’t get my head around it right now  
Please help 😃

---

<div class="post-metadata">

**Author:** ![vladimir.pak](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/vladimir.pak/32/135208_2.png) [@vladimir.pak](https://forum.bubble.io/u/vladimir.pak)\
**Post date:** [July 10, 2023, 10:06am UTC](https://forum.bubble.io/t/toggle-and-untoggle-button/271789/2 "2023-07-10T10:06:05Z")

</div>

Looks like two workflows should do the job:

1. `When Button clicked and Button's customState is 'no'` → `Set Button's customState to 'yes'`
2. `When Button clicked and Button's customState is 'yes'` → `Set Button's customState to 'no'`

---

<div class="post-metadata">

**Author:** ![vladimir.pak](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/vladimir.pak/32/135208_2.png) [@vladimir.pak](https://forum.bubble.io/u/vladimir.pak)\
**Post date:** [July 10, 2023, 10:12am UTC](https://forum.bubble.io/t/toggle-and-untoggle-button/271789/3 "2023-07-10T10:12:17Z")

</div>

And once you get that working, you can go further and collapse those two into a single workflow  
`When Button clicked` → `Button's customState` = `Button's customState is 'no'`

---

<div class="post-metadata">

**Author:** ![cvnfortnite](https://avatars.discourse-cdn.com/v4/letter/c/67e7ee/32.png) [@cvnfortnite](https://forum.bubble.io/u/cvnfortnite)\
**Post date:** [July 10, 2023, 10:13am UTC](https://forum.bubble.io/t/toggle-and-untoggle-button/271789/4 "2023-07-10T10:13:55Z")

</div>

of course, so simple, thank you! My brain has been melting on/off for 24 hours trying to figure it out 😃

---

<div class="post-metadata">

**Author:** ![cvnfortnite](https://avatars.discourse-cdn.com/v4/letter/c/67e7ee/32.png) [@cvnfortnite](https://forum.bubble.io/u/cvnfortnite)\
**Post date:** [July 10, 2023, 10:56am UTC](https://forum.bubble.io/t/toggle-and-untoggle-button/271789/5 "2023-07-10T10:56:45Z")

</div>

Do you know what would be the simplest way to do the following:  
4 buttons where only 1 can be clicked at a time?
