# How to link inject node to the node-red dashboard button

**URL:** <https://discourse.nodered.org/t/how-to-link-inject-node-to-the-node-red-dashboard-button/69619>\
**Category:** Dashboard\
**Created:** [26 October 2022 12:14 UTC](https://discourse.nodered.org/t/how-to-link-inject-node-to-the-node-red-dashboard-button/69619 "2022-10-26T12:14:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vedant](https://avatars.discourse-cdn.com/v4/letter/v/ba9def/32.png) [@Vedant](https://discourse.nodered.org/u/Vedant)\
**Post date:** [26 October 2022 12:14 UTC](https://discourse.nodered.org/t/how-to-link-inject-node-to-the-node-red-dashboard-button/69619/1 "2022-10-26T12:14:16Z")

</div>

Hello everyone,  
I am currently sending some data to a robot controller by inputing it's ip address and port number. There are some extra fields for eg the command number and the value written into the robot. I use inject node for this and the output is displayed on the debug node. I am trying to use the node-red dashboard to input these extra fields for which I use the inject node. is it a way to link the inject node or any other way with which I can do this? Any help is highly appreciated. Thank you.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/9/097b51e872072157fcf34d3c236f64a9b1b86fb0.png)  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/6/a69c9b4294478b99505a41e8ef39505de6db680b.png)  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/7/37de44bcb55141fb1e08493d2f03c02ed6209645.png)

I want that the user can himself input the fields in the node-red dashboard and start the process just by clicking the buton  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/3/73cd4ef31970836d7f4464fc91500a16ba1cc3a6.png)

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [26 October 2022 12:32 UTC](https://discourse.nodered.org/t/how-to-link-inject-node-to-the-node-red-dashboard-button/69619/2 "2022-10-26T12:32:40Z")

</div>

The output of any of the Dashboard nodes that allow user input goes to that node's output port as a msg. So all you need to do is attach a change node to the output so as to get the data into the right format and properties and then feed the output of that to wherever your inject node goes.

---

<div class="post-metadata">

**Author:** ![Vedant](https://avatars.discourse-cdn.com/v4/letter/v/ba9def/32.png) [@Vedant](https://discourse.nodered.org/u/Vedant)\
**Post date:** [26 October 2022 13:10 UTC](https://discourse.nodered.org/t/how-to-link-inject-node-to-the-node-red-dashboard-button/69619/3 "2022-10-26T13:10:50Z")

</div>

Hello, thank you for your quick response! Unfortunately, I did not quite understand, would you be so kind abd show it with an example. It would be much clear. Thank you!

This is what I am trying, I might be very wrong.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/1/011b32dbabd28de2886213f139bca21ae2af87e6.png)

This has the UI like this on the webpage  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/5/05a2b1f006921d8ef0c8c28959e3685a70e15f58.png)

---

<div class="post-metadata">

**Author:** ![knoepsche](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knoepsche/32/69450_2.png) [@knoepsche](https://discourse.nodered.org/u/knoepsche)\
**Post date:** [29 October 2022 08:15 UTC](https://discourse.nodered.org/t/how-to-link-inject-node-to-the-node-red-dashboard-button/69619/4 "2022-10-29T08:15:34Z")

</div>

Use ui\_form from your dashboard nodes instead of a different button with different input fields:

- **Form** - a widget that can be composed of several sub-widgets. When submitted all values are submitted as a single message.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [28 November 2022 08:15 UTC](https://discourse.nodered.org/t/how-to-link-inject-node-to-the-node-red-dashboard-button/69619/5 "2022-11-28T08:15:53Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
