# Dynamically set the label of a “button node” doesn' work

**URL:** <https://discourse.nodered.org/t/dynamically-set-the-label-of-a-button-node-doesn-work/99252>\
**Category:** Dashboard\
**Tags:** node-red-dashboard\
**Created:** [3 October 2025 12:21 UTC](https://discourse.nodered.org/t/dynamically-set-the-label-of-a-button-node-doesn-work/99252 "2025-10-03T12:21:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jomifa](https://avatars.discourse-cdn.com/v4/letter/j/a4c791/32.png) [@jomifa](https://discourse.nodered.org/u/jomifa)\
**Post date:** [3 October 2025 12:21 UTC](https://discourse.nodered.org/t/dynamically-set-the-label-of-a-button-node-doesn-work/99252/1 "2025-10-03T12:21:35Z")

</div>

Hello,  
I am trying to dynamically set the label of a “button node” under Dashboard 1 (version: 3.6.6) from a “function node.” The debug looks like this:

object  
label: “Auto”  
tooltip: “Switch device to Auto mode immediately”  
ui\_control: object  
label: “Auto”  
tooltip: “Switch device to Auto mode immediately”  
\_msgid: “0c087b84bfa3bd24”

Neither version achieves the desired result. The label of the button node is not set. How can this be achieved (without a UI template)?

---

<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:** [3 October 2025 12:36 UTC](https://discourse.nodered.org/t/dynamically-set-the-label-of-a-button-node-doesn-work/99252/2 "2025-10-03T12:36:50Z")

</div>

I don't see any reference to setting the label like that in the node's help text, however, it does say:

The label and icon can also be set by a message property by setting the field to the name of the property, for example `{{topic}}` or `{{myicon}}` .

---

<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:** [2 November 2025 12:36 UTC](https://discourse.nodered.org/t/dynamically-set-the-label-of-a-button-node-doesn-work/99252/3 "2025-11-02T12:36:56Z")

</div>

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