# Change the ui text node 'label' name dynamically

**URL:** <https://discourse.nodered.org/t/change-the-ui-text-node-label-name-dynamically/84754>\
**Category:** Dashboard\
**Tags:** dashboard-2\
**Created:** [20 January 2024 16:30 UTC](https://discourse.nodered.org/t/change-the-ui-text-node-label-name-dynamically/84754 "2024-01-20T16:30:37Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [20 January 2024 16:30 UTC](https://discourse.nodered.org/t/change-the-ui-text-node-label-name-dynamically/84754/1 "2024-01-20T16:30:37Z")

</div>

Dashboard 2 - Looking to change the ui text node 'label' name dynamically via incoming msg.

I've looked at the 'Dynamic Property' feature but I'm guessing that's more to do with colours, borders, styling etc.

Possible?

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [20 January 2024 16:55 UTC](https://discourse.nodered.org/t/change-the-ui-text-node-label-name-dynamically/84754/2 "2024-01-20T16:55:00Z")

</div>

Please ignore above ....just found [Set labels on charts and other widgets via msg · Issue #234 · FlowFuse/node-red-dashboard · GitHub](https://github.com/FlowFuse/node-red-dashboard/issues/234) so no, not yet possible.

---

<div class="post-metadata">

**Author:** ![mickym2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mickym2/32/36128_2.png) [@mickym2](https://discourse.nodered.org/u/mickym2)\
**Post date:** [21 January 2024 03:09 UTC](https://discourse.nodered.org/t/change-the-ui-text-node-label-name-dynamically/84754/3 "2024-01-21T03:09:01Z")

</div>

You can set the label with any msg property using the double curly brackets.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/4/d4a0b5af7253bcfa4d35f0d12a0a5105d45e7ddd.png)

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/6/462b3a0e2633b48704c9cbb65f1fe8cbd60f40fb.png)

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/9/c96af492cd38f7519d8073aeb3dd4737cbbf6077.png)

```auto
[{"id":"9f552602aaf608e6","type":"ui_text","z":"289f539dcc33814e","group":"96d42b36ee18973d","order":0,"width":0,"height":0,"name":"","label":"{{msg.topic}}","format":"{{msg.payload}}","layout":"row-spread","className":"","style":false,"font":"","fontSize":16,"color":"#000000","x":930,"y":4840,"wires":[]},{"id":"4a91a37cc416aca9","type":"inject","z":"289f539dcc33814e","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"dynamic label","payload":"value","payloadType":"str","x":750,"y":4840,"wires":[["9f552602aaf608e6"]]},{"id":"96d42b36ee18973d","type":"ui_group","name":"Test2","tab":"20b3095113f94d70","order":3,"disp":true,"width":"6","collapse":false,"className":""},{"id":"20b3095113f94d70","type":"ui_tab","name":"Home","icon":"dashboard","order":2,"disabled":false,"hidden":false}]

```

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [21 January 2024 05:42 UTC](https://discourse.nodered.org/t/change-the-ui-text-node-label-name-dynamically/84754/4 "2024-01-21T05:42:17Z")

</div>

Hi. Your demo is for node-red-dashboard (aka dashboard 1)

The op is using @FlowFuse/node-red-dashboard (aka dashboard 2)

> [@Paul-Reed](#):
>
> Dashboard 2

* * *

@joepavitt we really aught to consider visual separation from dashboard 1. Can only see this situation getting worse. Yikes.

---

<div class="post-metadata">

**Author:** ![joepavitt](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/joepavitt/32/59722_2.png) [@joepavitt](https://discourse.nodered.org/u/joepavitt)\
**Post date:** [21 January 2024 10:25 UTC](https://discourse.nodered.org/t/change-the-ui-text-node-label-name-dynamically/84754/5 "2024-01-21T10:25:11Z")

</div>

I did explore other node colour sets, but given how restrictive Node-RED's rules and flexibility is on node styling, there arent any other obvious palettes available that also work with black/dark-grey text.

---

<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:** [20 February 2024 10:25 UTC](https://discourse.nodered.org/t/change-the-ui-text-node-label-name-dynamically/84754/6 "2024-02-20T10:25:21Z")

</div>

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