# Updating label - ui-text

**URL:** <https://discourse.nodered.org/t/updating-label-ui-text/98063>\
**Category:** Dashboard\
**Tags:** dashboard-2\
**Created:** [9 July 2025 22:31 UTC](https://discourse.nodered.org/t/updating-label-ui-text/98063 "2025-07-09T22:31:54Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![rakgupta](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rakgupta/32/42535_2.png) [@rakgupta](https://discourse.nodered.org/u/rakgupta)\
**Post date:** [9 July 2025 22:31 UTC](https://discourse.nodered.org/t/updating-label-ui-text/98063/1 "2025-07-09T22:31:54Z")

</div>

Trying to set the label of ui-text node dynamically. I finally figured out that I had to use ui\_update.label to change the text (and not msg.label), but for some reason, I am seeing the [object Object] next to the label

 ![Screenshot 2025-07-09 at 5.22.30 PM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/f/ef4276261a1b9fff1bf1b839c65d1641f8ebec40.png)

The sample flow is below. What am I missing?

```flows
[{"id":"5676591b608cb257","type":"inject","z":"9fe89ce15b0f9a64","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"Backyard Motion","payload":"{\"name\":\"battery\",\"currentValue\":100,\"dataType\":\"NUMBER\",\"value\":100,\"deviceId\":\"675\"}","payloadType":"json","x":254.6580810546875,"y":342.95769519140623,"wires":[["c74c79d966ceccab","32de5b4fae82bd41"]]},{"id":"c74c79d966ceccab","type":"change","z":"9fe89ce15b0f9a64","name":"Set Label","rules":[{"t":"set","p":"ui_update.label","pt":"msg","to":"topic","tot":"msg"},{"t":"delete","p":"payload","pt":"msg"},{"t":"set","p":"topic","pt":"msg","to":"","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":490.8345642089844,"y":290.82720947265625,"wires":[["7a6560d662a0b275","979ec43c0698dd3c"]]},{"id":"32de5b4fae82bd41","type":"change","z":"9fe89ce15b0f9a64","name":"Set Label","rules":[{"t":"set","p":"ui_update.label","pt":"msg","to":"payload.currentValue&'%'","tot":"jsonata"},{"t":"delete","p":"payload","pt":"msg"},{"t":"delete","p":"topic","pt":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":489.8345642089844,"y":383.82720947265625,"wires":[["741c131a57fab787","9f384dc6a35c58af"]]},{"id":"7a6560d662a0b275","type":"ui-text","z":"9fe89ce15b0f9a64","group":"7a54ca8d64972f71","order":2,"width":0,"height":0,"name":"Name","label":"Button","format":"{{msg.payload}}","layout":"row-center","style":true,"font":"Arial Narrow,Nimbus Sans L,sans-serif","fontSize":"14","color":"#ffffff","wrapText":false,"className":"","x":638.3639831542969,"y":291.25550842285156,"wires":[]},{"id":"979ec43c0698dd3c","type":"debug","z":"9fe89ce15b0f9a64","name":"Name Debug","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":643.8346252441406,"y":216.82720947265625,"wires":[]},{"id":"741c131a57fab787","type":"ui-text","z":"9fe89ce15b0f9a64","group":"7a54ca8d64972f71","order":3,"width":0,"height":0,"name":"Value","label":"Override?","format":"{{msg.payload}}","layout":"row-center","style":true,"font":"Arial Narrow,Nimbus Sans L,sans-serif","fontSize":"14","color":"#ffffff","wrapText":false,"className":"","x":637.3639831542969,"y":384.25550842285156,"wires":[]},{"id":"9f384dc6a35c58af","type":"debug","z":"9fe89ce15b0f9a64","name":"Value Debug","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":649.8346862792969,"y":447.82720947265625,"wires":[]},{"id":"7a54ca8d64972f71","type":"ui-group","name":"Table","page":"602ea8fba38b32ae","width":"24","height":"16","order":1,"showTitle":true,"className":"","visible":"true","disabled":"false","groupType":"default"},{"id":"602ea8fba38b32ae","type":"ui-page","name":"Test ui-table","ui":"de5759a313e7ad79","path":"/page6","icon":"home","layout":"grid","theme":"682b37bffc90cac5","breakpoints":[{"name":"Default","px":"0","cols":"3"},{"name":"Tablet","px":"576","cols":"6"},{"name":"Small Desktop","px":"768","cols":"9"},{"name":"Desktop","px":"1024","cols":"12"}],"order":7,"className":"","visible":"true","disabled":"false"},{"id":"de5759a313e7ad79","type":"ui-base","name":"My Dashboard","path":"/dashboard","appIcon":"","includeClientData":true,"acceptsClientConfig":["ui-notification","ui-control"],"showPathInSidebar":false,"headerContent":"page","navigationStyle":"fixed","titleBarStyle":"default","showReconnectNotification":true,"notificationDisplayTime":5,"showDisconnectNotification":true,"allowInstall":true},{"id":"682b37bffc90cac5","type":"ui-theme","name":"Table Dark","colors":{"surface":"#000000","primary":"#ffffff","bgPage":"#000000","groupBg":"#000000","groupOutline":"#669c35"},"sizes":{"density":"default","pagePadding":"12px","groupGap":"12px","groupBorderRadius":"4px","widgetGap":"12px"}}]

```

---

<div class="post-metadata">

**Author:** ![smanjunath211](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/smanjunath211/32/95742_2.png) [@smanjunath211](https://discourse.nodered.org/u/smanjunath211)\
**Post date:** [9 July 2025 23:38 UTC](https://discourse.nodered.org/t/updating-label-ui-text/98063/2 "2025-07-09T23:38:00Z")

</div>

It works for me.  
 ![label_update](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/c/ac5fdd91a6def235aeab0ac30f9db97e1da5e3d8.gif)

---

<div class="post-metadata">

**Author:** ![rakgupta](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rakgupta/32/42535_2.png) [@rakgupta](https://discourse.nodered.org/u/rakgupta)\
**Post date:** [9 July 2025 23:40 UTC](https://discourse.nodered.org/t/updating-label-ui-text/98063/4 "2025-07-09T23:40:14Z")

</div>

> [@smanjunath211](#):
>
> It works for me.

Thanks for checking this out. I will keep digging into what may be going on.

---

<div class="post-metadata">

**Author:** ![rakgupta](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rakgupta/32/42535_2.png) [@rakgupta](https://discourse.nodered.org/u/rakgupta)\
**Post date:** [9 July 2025 23:44 UTC](https://discourse.nodered.org/t/updating-label-ui-text/98063/5 "2025-07-09T23:44:53Z")

</div>

> [@jbudd](#):
>
> The first thing you are missing is any details of the data sent to your text nodes.

The data is in the inject node. All I'm doing is changing the label to msg.topic in one text node and in the other case changing it to payload.currentValue (and appending a "%") sign. The change node also deletes msg.payload and msg.topic so no extraneous data is passed into the ui-text node.

---

<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:** [9 July 2025 23:46 UTC](https://discourse.nodered.org/t/updating-label-ui-text/98063/6 "2025-07-09T23:46:48Z")

</div>

I didn't realise till after I posted that the picture of your flow was actually the code, copyable. So my reply was irrelevant and I deleted it.

---

<div class="post-metadata">

**Author:** ![rakgupta](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rakgupta/32/42535_2.png) [@rakgupta](https://discourse.nodered.org/u/rakgupta)\
**Post date:** [9 July 2025 23:48 UTC](https://discourse.nodered.org/t/updating-label-ui-text/98063/7 "2025-07-09T23:48:16Z")

</div>

> [@jbudd](#):
>
> picture of your flow was actually the code

No worries - I think that's the "new" way of posting the flows.

---

<div class="post-metadata">

**Author:** ![smanjunath211](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/smanjunath211/32/95742_2.png) [@smanjunath211](https://discourse.nodered.org/u/smanjunath211)\
**Post date:** [9 July 2025 23:51 UTC](https://discourse.nodered.org/t/updating-label-ui-text/98063/8 "2025-07-09T23:51:26Z")

</div>

sometimes, just refreshing the browser works

---

<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:** [10 July 2025 08:07 UTC](https://discourse.nodered.org/t/updating-label-ui-text/98063/9 "2025-07-10T08:07:40Z")

</div>

What browser/version are you using? Are you able to try a different browser?

---

<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:** [9 August 2025 08:08 UTC](https://discourse.nodered.org/t/updating-label-ui-text/98063/10 "2025-08-09T08:08:28Z")

</div>

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