# Text node not displaying title and payload same time

**URL:** <https://discourse.nodered.org/t/text-node-not-displaying-title-and-payload-same-time/1581>\
**Category:** General\
**Created:** [15 July 2018 11:36 UTC](https://discourse.nodered.org/t/text-node-not-displaying-title-and-payload-same-time/1581 "2018-07-15T11:36:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![BlinkScooby](https://avatars.discourse-cdn.com/v4/letter/b/22d042/32.png) [@BlinkScooby](https://discourse.nodered.org/u/BlinkScooby)\
**Post date:** [15 July 2018 11:36 UTC](https://discourse.nodered.org/t/text-node-not-displaying-title-and-payload-same-time/1581/1 "2018-07-15T11:36:36Z")

</div>

Hey guys.  
I am a bit perplexed on my UI text node. I have a Text node that doesn't display both things that I have set. So I have a MQTT message that gets put into json then i filter out only a name of the MQTT. It then splits off and changes to a time stamp and the other one sends the name of the message to the text node.  
In the text node I have the label set to {{msg.payload2}} then in the Value i have put {{msg.payload1}}.  
When I deploy. It never displays both of them at a time. I know I have them set right because I can remove the link between label and then the value will always show up. If i remove the link between the value the label will always show up. But if I have both of them linked to the same txt node it will not display both of them.  
Am I doing something wrong that I don't understand? Or is this a limitation of the text node?

Below is displayed of my flow.

 ![Capture](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/d/d2e2411d2da2493ff86358ef76c782fd77cd98a1.PNG)

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [15 July 2018 11:42 UTC](https://discourse.nodered.org/t/text-node-not-displaying-title-and-payload-same-time/1581/2 "2018-07-15T11:42:19Z")

</div>

two things

1. provide a copy of your flow so people can look at it.
2. you are sending one msg to both change nodes - what are you doing in them?

---

<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:** [15 July 2018 12:25 UTC](https://discourse.nodered.org/t/text-node-not-displaying-title-and-payload-same-time/1581/3 "2018-07-15T12:25:36Z")

</div>

The Text node displays whatever is in the last message it receives. As @zenofmud says you have not posted the flow so it is difficult to be certain but I suspect you are sending it the label in one message and the text in another. You need to put them both into one message and pass that to the text node.

---

<div class="post-metadata">

**Author:** ![BlinkScooby](https://avatars.discourse-cdn.com/v4/letter/b/22d042/32.png) [@BlinkScooby](https://discourse.nodered.org/u/BlinkScooby)\
**Post date:** [15 July 2018 13:23 UTC](https://discourse.nodered.org/t/text-node-not-displaying-title-and-payload-same-time/1581/4 "2018-07-15T13:23:57Z")

</div>

Here is the flow but @Colin you pretty much answered it. I knew that it would display the last thing sent it to it but I thought the Label and the Vaule would be seperate from one another. if they are not seperate then it would explain why the Label always gets displayed even if I send 2 things as the time stamp would be recieved a few microseconds after due to more processing time of nodes

```auto
[{"id":"4256a624.bca368","type":"tab","label":"IOT Firmware Managment","disabled":false,"info":""},{"id":"9e91a090.63af6","type":"mqtt in","z":"4256a624.bca368","name":"","topic":"domoticz/out","qos":"2","broker":"a4eef001.c9406","x":150,"y":160,"wires":[["a14a5bd0.234d88"]]},{"id":"9307d0b5.7572c","type":"function","z":"4256a624.bca368","name":"Filter out name","func":"return { payload: msg.payload.name }\n ","outputs":1,"noerr":0,"x":480,"y":160,"wires":[["b5d8cdf1.ecd01","160dfcca.748753"]]},{"id":"a14a5bd0.234d88","type":"json","z":"4256a624.bca368","name":"","property":"payload","action":"obj","pretty":true,"x":310,"y":160,"wires":[["9307d0b5.7572c"]]},{"id":"b5d8cdf1.ecd01","type":"change","z":"4256a624.bca368","name":"Change to Timestamp","rules":[{"t":"set","p":"payload","pt":"msg","to":"","tot":"date"}],"action":"","property":"","from":"","to":"","reg":false,"x":720,"y":100,"wires":[["87f8aeb0.b4931","7df079d1.fdf398"]]},{"id":"87f8aeb0.b4931","type":"moment","z":"4256a624.bca368","name":"","topic":"","input":"payload","inputType":"msg","inTz":"Europe/London","adjAmount":"0","adjType":"hours","adjDir":"add","format":"DD-MM-YY hh:mm:ss","locale":"en_GB","output":"payload1","outputType":"msg","outTz":"Europe/London","x":960,"y":100,"wires":[["28101b49.269124","f4eb5656.57bad8"]]},{"id":"f4eb5656.57bad8","type":"ui_text","z":"4256a624.bca368","group":"77b8538a.d9e3fc","order":0,"width":0,"height":0,"name":"Test","label":"{{msg.payload2}}","format":"{{msg.payload1}}","layout":"row-spread","x":950,"y":160,"wires":[]},{"id":"160dfcca.748753","type":"change","z":"4256a624.bca368","name":"Change to payload2","rules":[{"t":"move","p":"payload","pt":"msg","to":"payload2","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":720,"y":160,"wires":[["f4eb5656.57bad8","7df079d1.fdf398"]]},{"id":"7df079d1.fdf398","type":"debug","z":"4256a624.bca368","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":920,"y":260,"wires":[]},{"id":"28101b49.269124","type":"ui_text","z":"4256a624.bca368","group":"77b8538a.d9e3fc","order":0,"width":0,"height":0,"name":"Test","label":"","format":"{{msg.payload1}}","layout":"row-spread","x":1150,"y":100,"wires":[]},{"id":"a4eef001.c9406","type":"mqtt-broker","broker":"127.0.0.1","port":"1883","clientid":"","usetls":false,"verifyservercert":true,"compatmode":true,"keepalive":15,"cleansession":true,"willQos":"0","birthQos":"0"},{"id":"77b8538a.d9e3fc","type":"ui_group","z":"","name":"Last Reported","tab":"600f3e67.161b","disp":true,"width":"6","collapse":false},{"id":"600f3e67.161b","type":"ui_tab","z":"","name":"IOT Management ","icon":"router","order":"7"}]
```

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [15 July 2018 14:04 UTC](https://discourse.nodered.org/t/text-node-not-displaying-title-and-payload-same-time/1581/5 "2018-07-15T14:04:40Z")

</div>

Hi,

you could just leave the name where it was, and use a change node to set `msg.payload.ts` to timestamp - then in the ui\_text node set label to {{payload.name}} and value to {{payload.ts}}

---

<div class="post-metadata">

**Author:** ![BlinkScooby](https://avatars.discourse-cdn.com/v4/letter/b/22d042/32.png) [@BlinkScooby](https://discourse.nodered.org/u/BlinkScooby)\
**Post date:** [15 July 2018 14:09 UTC](https://discourse.nodered.org/t/text-node-not-displaying-title-and-payload-same-time/1581/6 "2018-07-15T14:09:42Z")

</div>

I was able to get it working. I took the change node of the timestamp added another change and set msg.topic to msg.payload then they both get passed through and sent in the same message to the text node 🙂  
Thanks guy
