# From where is this text coming?

**URL:** <https://discourse.nodered.org/t/from-where-is-this-text-coming/98407>\
**Category:** Dashboard\
**Tags:** dashboard-2\
**Created:** [31 July 2025 05:01 UTC](https://discourse.nodered.org/t/from-where-is-this-text-coming/98407 "2025-07-31T05:01:39Z")\
**Posts on this page:** 20\
**Page:** 3

<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:** [31 July 2025 12:33 UTC](https://discourse.nodered.org/t/from-where-is-this-text-coming/98407/41 "2025-07-31T12:33:52Z")

</div>

> [@Trying\_to\_learn](#):
>
> I thought that the `ui_update.label` was for that button/node.  
> Not the whole _enchilada_

It affects any node that you send the message to, and only that/those node[s]

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [31 July 2025 12:34 UTC](https://discourse.nodered.org/t/from-where-is-this-text-coming/98407/42 "2025-07-31T12:34:49Z")

</div>

I thought (dangerous) I addressed that issue.

Again, thanks.

---

<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:** [31 July 2025 12:35 UTC](https://discourse.nodered.org/t/from-where-is-this-text-coming/98407/43 "2025-07-31T12:35:01Z")

</div>

> [@Trying\_to\_learn](#):
>
> I thought that the `ui_update.label` was for that button/node.

It is only for the node you send it to, but if you add a debug node showing what is going into the text node, set to Output Complete Message and you will see that you are see that you are sending it a message with ui-update.label set to HOLD.

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [31 July 2025 12:37 UTC](https://discourse.nodered.org/t/from-where-is-this-text-coming/98407/44 "2025-07-31T12:37:36Z")

</div>

But there is a `PASS` also in one of the `change` nodes.

And if `HOLD` gets sent, then `PASS` has just as much getting through as `HOLD`.

---

<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:** [31 July 2025 12:37 UTC](https://discourse.nodered.org/t/from-where-is-this-text-coming/98407/45 "2025-07-31T12:37:39Z")

</div>

> [@Colin](#):
>
> add a debug node showing what is going into the text node, set to Output Complete Message

That's exactly what I did @Colin but I can't see how it gets from the output of the "Hold" change node to the input of the "Test" text node, because the button is not set to pass on incoming messages.

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [31 July 2025 12:52 UTC](https://discourse.nodered.org/t/from-where-is-this-text-coming/98407/46 "2025-07-31T12:52:30Z")

</div>

Ok, I'll bite.

So somehow a rogue message is getting through.

So to _reset_ it I stick an `inject` node into that `text` node and this is the code for the `inject` node:

```auto
[{"id":"13c521343411bc6e","type":"inject","z":"b39000460508d582","name":"","props":[{"p":"payload"},{"p":"ui_template","v":"{\"label\":\"TIME\",\"buttonColor\":\"blue\"}","vt":"json"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"fgfg","payloadType":"str","x":5790,"y":730,"wires":[["52ba28d889a8d6fb"]]}]

```

But the `text` node doesn't change anything except the _message_ changes.

Why?

Sorry if it is a dumb question, but I really seem to be missing something.

---

<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:** [31 July 2025 13:00 UTC](https://discourse.nodered.org/t/from-where-is-this-text-coming/98407/47 "2025-07-31T13:00:08Z")

</div>

You appear to have found a bug in the Button node. It is passing on the msg.ui\_update property that it previously received. Please report this at [GitHub · Where software is built](https://github.com/FlowFuse/node-red-dashboard/issues). Construct a very simple flow with just an inject, a button and a debug node. In the Inject node pass in msg.ui\_update.label.

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [31 July 2025 13:01 UTC](https://discourse.nodered.org/t/from-where-is-this-text-coming/98407/48 "2025-07-31T13:01:58Z")

</div>

# Woo hoo!

I found a bug!

Ok, I'll work on it.

I'm just fixing a `change` node to (I hope) stop it happening.

---

<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:** [31 July 2025 13:05 UTC](https://discourse.nodered.org/t/from-where-is-this-text-coming/98407/49 "2025-07-31T13:05:37Z")

</div>

This does mean that you were not carrying out your earlier tests with sufficient care. You can work around the problem by adding a Change node after the button containing Delete msg.ui\_update

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/a/7a24d3906657c3562148e81f7c6295226c4742ef.png)

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [31 July 2025 13:06 UTC](https://discourse.nodered.org/t/from-where-is-this-text-coming/98407/50 "2025-07-31T13:06:59Z")

</div>

Sorry Colin, I just want to check.

I think it isn't a bug. (Shooting myself in the foot)

I shall explain my suspicion to what is causing it.

I can't exactly say the _timing_, but if/when I press the `HOLD` button  
(Ah, I see you have found the problem I found.)

Ok, we are on the same page.

So it isn't a bug - yes?

---

<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:** [31 July 2025 13:07 UTC](https://discourse.nodered.org/t/from-where-is-this-text-coming/98407/51 "2025-07-31T13:07:44Z")

</div>

If the button is sending msg.ui\_update then it is a bug. It should not do that.

---

<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:** [31 July 2025 13:08 UTC](https://discourse.nodered.org/t/from-where-is-this-text-coming/98407/52 "2025-07-31T13:08:35Z")

</div>

> [@Colin](#):
>
> you were not carrying out your earlier tests with sufficient care.

I don't doubt it 😰

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [31 July 2025 13:09 UTC](https://discourse.nodered.org/t/from-where-is-this-text-coming/98407/53 "2025-07-31T13:09:24Z")

</div>

This is where I added the code in the `change` node.  
Not a new one.

 ![Screenshot from 2025-07-31 23-07-38](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/e/def2b02e7e5f26a6763b3a53a559f00d1ca9c83a.png)

But - as you pointed out, I should check `debug 4` too to see if the `button` is sending those things.

(Hang on)

Seems it s bug.

 ![Screenshot from 2025-07-31 23-10-20](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/4/94bfdf5af0760794a04ad919523276fa2684917e.png)

But I do agree, I should have been better at catching that.  
I guess because it didn't used to happen I didn't think of looking there.

Thanks.

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [31 July 2025 13:12 UTC](https://discourse.nodered.org/t/from-where-is-this-text-coming/98407/54 "2025-07-31T13:12:56Z")

</div>

So, ok, for my edification:

Why doesn't the `inject` node I posted a short while back put the `text` node to what the message is?

---

<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:** [31 July 2025 13:16 UTC](https://discourse.nodered.org/t/from-where-is-this-text-coming/98407/55 "2025-07-31T13:16:18Z")

</div>

> [@Trying\_to\_learn](#):
>
> Why doesn't the `inject` node I posted a short while back put the `text` node to what the message is?

Because you are not setting msg.ui\_update

---

<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:** [31 July 2025 13:17 UTC](https://discourse.nodered.org/t/from-where-is-this-text-coming/98407/56 "2025-07-31T13:17:39Z")

</div>

In this simple flow  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/9/892f95fa8ce454c48a70e59c8babfb18dbabff54.png)

The inject sends payload and ui\_update.label.

The button does not pass on incoming messages _but it does retain msg.ui\_update_.

When the button is pressed, _it sends the retained ui\_update_ along with it's own payload.

Undoubtedly a bug!

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [31 July 2025 13:17 UTC](https://discourse.nodered.org/t/from-where-is-this-text-coming/98407/57 "2025-07-31T13:17:57Z")

</div>

You are right.

I (somehow) typed ui\_template by mistake.

Hmmmm.... Gotta love dyslexia.

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [31 July 2025 13:21 UTC](https://discourse.nodered.org/t/from-where-is-this-text-coming/98407/58 "2025-07-31T13:21:35Z")

</div>

Ok, the flow I was making to test it is slightly more complicated.  
But not too much more.

I'll go to the link and start making a bug report.

Let's hope I don't stuff that up.  
😉

---

<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:** [31 July 2025 13:22 UTC](https://discourse.nodered.org/t/from-where-is-this-text-coming/98407/59 "2025-07-31T13:22:35Z")

</div>

> [@Trying\_to\_learn](#):
>
> the flow I was making to test it is slightly more complicated.

Why? The simpler the better.

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [31 July 2025 13:27 UTC](https://discourse.nodered.org/t/from-where-is-this-text-coming/98407/60 "2025-07-31T13:27:40Z")

</div>

Only because (surprisingly) I was staring to understand it as we (all) were swapping reports.

I added 2 `inject` nodes to the flow I had just before the `switch` node and injected a `0` or `1` to then create the messages into the `button` node.

(Testing it was at that stage and then it was realised what/where it was)

I don't trust myself to add all that stuff to the `inject` nodes at this time of night.

It is only adding 2 x `inject` nodes, 1 `switch` and 2 x `change` nodes to what you had.

the `change` nodes set things so... I guess I could just send the `inject` nodes into the `change` nodes.

[Previous page](https://discourse.nodered.org/t/from-where-is-this-text-coming/98407.md?page=2)

[Next page](https://discourse.nodered.org/t/from-where-is-this-text-coming/98407.md?page=4)
