# First time using buttons

**URL:** <https://discourse.nodered.org/t/first-time-using-buttons/78974>\
**Category:** General\
**Created:** [5 June 2023 19:50 UTC](https://discourse.nodered.org/t/first-time-using-buttons/78974 "2023-06-05T19:50:47Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [5 June 2023 20:29 UTC](https://discourse.nodered.org/t/first-time-using-buttons/78974/2 "2023-06-05T20:29:18Z")

</div>

Let's solve them one at a time. This should be the easiest

> [@spawnreaper](#):
>
> Now, ive added a trigger node to put a 400ms delay on relay1 and then turn off. This, does not worp properly because it keeps triggering the action without inject is triggered. so, I may do it incorrectly. I dont know why it keeps triggering.

First add a debug node showing what is going into the Trigger and another showing what is coming out of the trigger. See whether there are extra inputs going in or extra outputs coming out. If that is not behaving correctly then select the button and trigger nodes (and any other nodes directly involved in this problem) and Export them and paste them here. In case you do not know how to post a flow, in order to make code readable and usable it is necessary to surround your code with three backticks (also known as a left quote or backquote `````)

````auto
``` 
   code goes here 
```

````

See this post for more details - [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/first-time-using-buttons/78974)._
