# UI switch behaviour

**URL:** <https://discourse.nodered.org/t/ui-switch-behaviour/40384>\
**Category:** Dashboard\
**Created:** [4 February 2021 15:24 UTC](https://discourse.nodered.org/t/ui-switch-behaviour/40384 "2021-02-04T15:24:53Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [4 February 2021 15:53 UTC](https://discourse.nodered.org/t/ui-switch-behaviour/40384/3 "2021-02-04T15:53:11Z")

</div>

Set the switch to not pass messages through and to Show the State of the input.  
Then when you click the switch it will send the new state, that will be fed back in at the front by the signal from whatever you are controlling and that will set the switch to show the state.

For the future please see this post for how to share a flow here - [How to share code or flow json](https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506)

---

_[View the full topic](https://discourse.nodered.org/t/ui-switch-behaviour/40384)._
