# How to set up a toggle button?

**URL:** <https://discourse.nodered.org/t/how-to-set-up-a-toggle-button/80132>\
**Category:** General\
**Created:** [28 July 2023 10:25 UTC](https://discourse.nodered.org/t/how-to-set-up-a-toggle-button/80132 "2023-07-28T10:25:03Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![hotNipi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hotnipi/32/383_2.png) [@hotNipi](https://discourse.nodered.org/u/hotNipi)\
**Post date:** [28 July 2023 10:41 UTC](https://discourse.nodered.org/t/how-to-set-up-a-toggle-button/80132/3 "2023-07-28T10:41:49Z")

</div>

Take a look to this thread, maybe you gain some ideas from it.

> [@Fancy buttons updating](https://discourse.nodered.org/t/fancy-buttons-updating/46557/8):
>
> Button with states. The Button Button is dummy. It has no knowledge about what the world is, but it happily takes in commands to be "red" or "blue" and can show what ever label is told to show. Only thing it does know is that it must react when you click on it. The state. The state is property of something. Mostly boolean (day - night) but why not more (morning - day - evening- night) The button with states does not own the state. But represents the state. So it can "blue" when state is "…

---

_[View the full topic](https://discourse.nodered.org/t/how-to-set-up-a-toggle-button/80132)._
