# Insert units to a field on dashboard text

**URL:** <https://discourse.nodered.org/t/insert-units-to-a-field-on-dashboard-text/89794>\
**Category:** Dashboard\
**Tags:** dashboard-2\
**Created:** [26 July 2024 15:17 UTC](https://discourse.nodered.org/t/insert-units-to-a-field-on-dashboard-text/89794 "2024-07-26T15:17:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![JoseGodinho](https://avatars.discourse-cdn.com/v4/letter/j/f4b2a3/32.png) [@JoseGodinho](https://discourse.nodered.org/u/JoseGodinho)\
**Post date:** [26 July 2024 15:17 UTC](https://discourse.nodered.org/t/insert-units-to-a-field-on-dashboard-text/89794/1 "2024-07-26T15:17:59Z")

</div>

Please see below how to add units to a msg.payload on node red 1. Please inform how to do it on dashboard2  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/2/b25070d8993c2f1c0b5df81c4c9c7f455f224417.png)

---

<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:** [26 July 2024 15:22 UTC](https://discourse.nodered.org/t/insert-units-to-a-field-on-dashboard-text/89794/2 "2024-07-26T15:22:23Z")

</div>

New recommended method is to use the core Node-RED "template" node: [Text ui-text | Node-RED Dashboard 2.0](https://dashboard.flowfuse.com/nodes/widgets/ui-text.html#rendering-msg-content)

It gives flexibility to render links, custom styling, or, in your case here as a °C symbol after your value

---

<div class="post-metadata">

**Author:** ![AnakinO7](https://avatars.discourse-cdn.com/v4/letter/a/f0a364/32.png) [@AnakinO7](https://discourse.nodered.org/u/AnakinO7)\
**Post date:** [27 July 2024 22:43 UTC](https://discourse.nodered.org/t/insert-units-to-a-field-on-dashboard-text/89794/3 "2024-07-27T22:43:20Z")

</div>

Sorry but it is a bit confused for me. Where I can read more documentation about add UNITS to TEXT DASHBOARD?

---

<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:** [28 July 2024 21:20 UTC](https://discourse.nodered.org/t/insert-units-to-a-field-on-dashboard-text/89794/4 "2024-07-28T21:20:05Z")

</div>

Hi @AnakinO7 welcome to the forums.

In core Node-RED, there is a "template" node (the orange one, not `ui-template`). It allows you to combine incoming messages and message properties, with text, for example you could write:

```auto
{{ msg.payload }}°C

```

You could then wire this template to the `ui-text` node. When passed to the text node, it will render with the `°C` units.

---

<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:** [27 August 2024 21:20 UTC](https://discourse.nodered.org/t/insert-units-to-a-field-on-dashboard-text/89794/5 "2024-08-27T21:20:25Z")

</div>

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