# Button with mutliple action?

**URL:** <https://community.ecumaster.com/t/button-with-mutliple-action/3583>\
**Category:** ADU\
**Created:** [April 27, 2025, 7:31am UTC](https://community.ecumaster.com/t/button-with-mutliple-action/3583 "2025-04-27T07:31:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jcdek](https://avatars.discourse-cdn.com/v4/letter/j/c67d28/32.png) [@Jcdek](https://community.ecumaster.com/u/Jcdek)\
**Post date:** [April 27, 2025, 7:31am UTC](https://community.ecumaster.com/t/button-with-mutliple-action/3583/1 "2025-04-27T07:31:19Z")

</div>

If I have a single button, can I make it perform a function such as ‘Next Page’ with a simple press but also then function as an ‘Alarm cancellation’ button if I press and hold it?

Another example, a 2nd button that functions as ‘Previous page’ on a simple click but functions as ‘Trip reset’ on a press and hold?

Hope somebody can advise.

Thanks in advance 👍

---

<div class="post-metadata">

**Author:** ![FloorItGarage](https://dub1.discourse-cdn.com/flex013/user_avatar/community.ecumaster.com/flooritgarage/32/61_2.png) [@FloorItGarage](https://community.ecumaster.com/u/FloorItGarage)\
**Post date:** [April 28, 2025, 4:29am UTC](https://community.ecumaster.com/t/button-with-mutliple-action/3583/2 "2025-04-28T04:29:23Z")

</div>

yes, use a switch input with the type “press/hold”

This will do the next page function when cancelling the alarm and there’s logic you can apply to fix that, but let’s start simple first

---

<div class="post-metadata">

**Author:** ![Jcdek](https://avatars.discourse-cdn.com/v4/letter/j/c67d28/32.png) [@Jcdek](https://community.ecumaster.com/u/Jcdek)\
**Post date:** [April 28, 2025, 6:17am UTC](https://community.ecumaster.com/t/button-with-mutliple-action/3583/3 "2025-04-28T06:17:03Z")

</div>

Thanks Flooritgarage,

Can you please point me in the right direction as to how to then apply logic to the button action?

---

<div class="post-metadata">

**Author:** ![FloorItGarage](https://dub1.discourse-cdn.com/flex013/user_avatar/community.ecumaster.com/flooritgarage/32/61_2.png) [@FloorItGarage](https://community.ecumaster.com/u/FloorItGarage)\
**Post date:** [April 28, 2025, 8:45pm UTC](https://community.ecumaster.com/t/button-with-mutliple-action/3583/4 "2025-04-28T20:45:46Z")

</div>

[switch example.adu](https://community.ecumaster.com/uploads/short-url/fr8gzcdihO95mBdLbuWf01Zgzrb.adu) (5.9 KB)  
take a look at this example i threw together.

With the ADU online you can mess with all the different settings to get it working the way you want to.  
Note the functions are assigned in the config panel under ‘page up channel’ and ‘acknowledge alarm’

---

<div class="post-metadata">

**Author:** ![Jcdek](https://avatars.discourse-cdn.com/v4/letter/j/c67d28/32.png) [@Jcdek](https://community.ecumaster.com/u/Jcdek)\
**Post date:** [April 29, 2025, 4:20am UTC](https://community.ecumaster.com/t/button-with-mutliple-action/3583/5 "2025-04-29T04:20:16Z")

</div>

That’s excellent! Many thanks for taking the time to do this. 👍

> [@FloorItGarage](#):
>
> [switch example.adu](https://community.ecumaster.com/uploads/short-url/fr8gzcdihO95mBdLbuWf01Zgzrb.adu) (5.9 KB)  
> take a look at this example i threw together.
> 
> With the ADU online you can mess with all the different settings to get it working the way you want to.  
> Note the functions are assigned in the config panel under ‘page up channel’ and ‘acknowledge alarm’
