# UI Button - momentary function

**URL:** https://discourse.nodered.org/t/ui-button-momentary-function/18894
**Category:** Dashboard
**Created:** [8 December 2019 07:16 UTC](https://discourse.nodered.org/t/ui-button-momentary-function/18894 "2019-12-08T07:16:36Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [8 December 2019 09:11 UTC](https://discourse.nodered.org/t/ui-button-momentary-function/18894/4 "2019-12-08T09:11:56Z")

</div>

Some ideas here

> [@Momentary button on Dashboard](https://discourse.nodered.org/t/momentary-button-on-dashboard/4906):
>
> Hello, I'm trying to create a momentary button on the dashboard. When I press it, payload should go "true", when I let go, "false" this doesn't do the trick as it sends both after I release the button: [{"id":"c07efd27.1cb3f8","type":"debug","z":"6880e39e.295cac","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":530,"y":500,"wires":[]},{"id":"d3589e5b.0c4448","type":"ui\_template","z":"6880e39e.295cac","group":"c713dff5.21ab3","name":"Toggle Butto…

---

_[View the full topic](https://discourse.nodered.org/t/ui-button-momentary-function/18894)._
