# Change button label using node ID

**URL:** <https://discourse.nodered.org/t/change-button-label-using-node-id/77691>\
**Category:** Dashboard\
**Created:** [18 April 2023 16:36 UTC](https://discourse.nodered.org/t/change-button-label-using-node-id/77691 "2023-04-18T16:36:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gNeandr](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gneandr/32/73947_2.png) [@gNeandr](https://discourse.nodered.org/u/gNeandr)\
**Post date:** [18 April 2023 16:36 UTC](https://discourse.nodered.org/t/change-button-label-using-node-id/77691/1 "2023-04-18T16:36:44Z")

</div>

The result of one flow should be used to change the label of a button in a second flow.  
How can this be realized?

Can the node ID of the button in the second flow be used for this? This way the first flow should create the new button label in the second flow.

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [18 April 2023 17:04 UTC](https://discourse.nodered.org/t/change-button-label-using-node-id/77691/2 "2023-04-18T17:04:57Z")

</div>

What exactly do you mean by using the node id?

You can change a button label:

- Set the Label field to `{{msg.label}}`
- Use a change node on the output of a button to set msg.label and delete msg.payload.
- Link nodes connect the output of the change node to the input of the button in another flow.

---

<div class="post-metadata">

**Author:** ![gNeandr](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gneandr/32/73947_2.png) [@gNeandr](https://discourse.nodered.org/u/gNeandr)\
**Post date:** [19 April 2023 16:56 UTC](https://discourse.nodered.org/t/change-button-label-using-node-id/77691/3 "2023-04-19T16:56:40Z")

</div>

Thanks, thought changing the 'label' of a Dashboard element needs to use the Node ID (which is shown on the right 'I' section of the editor ).

---

<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:** [3 May 2023 16:57 UTC](https://discourse.nodered.org/t/change-button-label-using-node-id/77691/4 "2023-05-03T16:57:04Z")

</div>

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