# Trying to handle single press and press-and-hold on a button that only gives press and release

**URL:** <https://discourse.nodered.org/t/trying-to-handle-single-press-and-press-and-hold-on-a-button-that-only-gives-press-and-release/77879>\
**Category:** General\
**Created:** [24 April 2023 12:29 UTC](https://discourse.nodered.org/t/trying-to-handle-single-press-and-press-and-hold-on-a-button-that-only-gives-press-and-release/77879 "2023-04-24T12:29:31Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![PdeJ](https://avatars.discourse-cdn.com/v4/letter/p/c89c15/32.png) [@PdeJ](https://discourse.nodered.org/u/PdeJ)\
**Post date:** [24 April 2023 17:27 UTC](https://discourse.nodered.org/t/trying-to-handle-single-press-and-press-and-hold-on-a-button-that-only-gives-press-and-release/77879/2 "2023-04-24T17:27:25Z")

</div>

Have a look [here](https://discourse.nodered.org/t/momentary-switch-or-button-normally-open/36768) which descibes how to make a momentary button, ie like your Press and Hold. It works both with mouse and touchscreens.

---

_[View the full topic](https://discourse.nodered.org/t/trying-to-handle-single-press-and-press-and-hold-on-a-button-that-only-gives-press-and-release/77879)._
