# Swapping order value and label in text nodes?

**URL:** <https://discourse.nodered.org/t/swapping-order-value-and-label-in-text-nodes/53200>\
**Category:** Dashboard\
**Created:** [4 November 2021 08:45 UTC](https://discourse.nodered.org/t/swapping-order-value-and-label-in-text-nodes/53200 "2021-11-04T08:45:21Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matt.L](https://avatars.discourse-cdn.com/v4/letter/m/9fc29f/32.png) [@Matt.L](https://discourse.nodered.org/u/Matt.L)\
**Post date:** [4 November 2021 08:45 UTC](https://discourse.nodered.org/t/swapping-order-value-and-label-in-text-nodes/53200/1 "2021-11-04T08:45:21Z")

</div>

Basically I want to display a value and follow it with a unit type. The text node almost gives me what I want if I use the label for the units. But I can't change the order of the label and value so it looks weird.

Is there a way to add layouts to the text node or is there an alternative text node that lets me change the other of the label and value?

---

<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:** [4 November 2021 09:15 UTC](https://discourse.nodered.org/t/swapping-order-value-and-label-in-text-nodes/53200/2 "2021-11-04T09:15:27Z")

</div>

Is the units text constant? If so then you can add the units in the Value Format field of the text node as described in the help text for the node. You can use, for example  
`{{msg.payload}} RPM`

---

<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:** [4 November 2021 09:17 UTC](https://discourse.nodered.org/t/swapping-order-value-and-label-in-text-nodes/53200/3 "2021-11-04T09:17:41Z")

</div>

You can leave Label blank and put the units in the Value format field:  
 ![Untitled 6](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/3/03d26ee83962ed8a119d92d6ca738ae15857b07d.jpeg)

Edit: snap!

---

<div class="post-metadata">

**Author:** ![Matt.L](https://avatars.discourse-cdn.com/v4/letter/m/9fc29f/32.png) [@Matt.L](https://discourse.nodered.org/u/Matt.L)\
**Post date:** [4 November 2021 17:45 UTC](https://discourse.nodered.org/t/swapping-order-value-and-label-in-text-nodes/53200/4 "2021-11-04T17:45:07Z")

</div>

Ah, now the format of that field makes more sense. I'm still a newbie to languages like Javascript and it did not occur to me that I was looking at mustache formatting.

Thanks!

---

<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:** [4 November 2021 19:36 UTC](https://discourse.nodered.org/t/swapping-order-value-and-label-in-text-nodes/53200/5 "2021-11-04T19:36:52Z")

</div>

Just to confuse you further. In this case it is not moustache. It is an angular formatter. But there are only so many markup symbols to use so they use the same ones. {{ }}

---

<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:** [18 November 2021 19:37 UTC](https://discourse.nodered.org/t/swapping-order-value-and-label-in-text-nodes/53200/6 "2021-11-18T19:37:26Z")

</div>

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