# UI text multi line

**URL:** <https://discourse.nodered.org/t/ui-text-multi-line/71467>\
**Category:** Dashboard\
**Created:** [29 November 2022 16:38 UTC](https://discourse.nodered.org/t/ui-text-multi-line/71467 "2022-11-29T16:38:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![denissanga](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/denissanga/32/48346_2.png) [@denissanga](https://discourse.nodered.org/u/denissanga)\
**Post date:** [29 November 2022 16:38 UTC](https://discourse.nodered.org/t/ui-text-multi-line/71467/1 "2022-11-29T16:38:45Z")

</div>

Hi all  
I'm using ui text ui table ui notify and I would write multi-line text. I try passing a payload with "\n" but not work.  
Can someone help me?

---

<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:** [29 November 2022 17:22 UTC](https://discourse.nodered.org/t/ui-text-multi-line/71467/2 "2022-11-29T17:22:13Z")

</div>

You really need to provide a bit more if you want some help. How about creating a small flow demonstration your issue and then you can export it and attach it to a reply. That way people can see what you are currently doing.

---

<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:** [29 November 2022 17:34 UTC](https://discourse.nodered.org/t/ui-text-multi-line/71467/3 "2022-11-29T17:34:12Z")

</div>

You can display multi-line text in a dashboard text node like this:

```auto
[
    {
        "id": "28b1b2ddd3155eb6",
        "type": "ui_text",
        "z": "12f7dc31296fd47a",
        "group": "a6e358b.672ffa8",
        "order": 7,
        "width": "6",
        "height": "3",
        "name": "",
        "label": "text",
        "format": "{{msg.payload}}",
        "layout": "row-spread",
        "className": "",
        "x": 630,
        "y": 40,
        "wires": []
    },
    {
        "id": "b3170ca4f76ddaa5",
        "type": "inject",
        "z": "12f7dc31296fd47a",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "Ottowa<p>Washington DC<p>Mexico City<p>Belmopan<p>Tegucigalpa<p>Guatemala City<p>",
        "payloadType": "str",
        "x": 490,
        "y": 40,
        "wires": [
            [
                "28b1b2ddd3155eb6"
            ]
        ]
    },
    {
        "id": "a6e358b.672ffa8",
        "type": "ui_group",
        "name": "Demo",
        "tab": "4e528085.a1bfa",
        "order": 1,
        "disp": true,
        "width": "20",
        "collapse": false
    },
    {
        "id": "4e528085.a1bfa",
        "type": "ui_tab",
        "name": "Demo",
        "icon": "dashboard",
        "order": 2,
        "disabled": false,
        "hidden": false
    }
]

```

![Untitled 1](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/e/3e89914e1734f0c2bf7e2c96c9022c0499c2d09f.jpeg)

---

<div class="post-metadata">

**Author:** ![denissanga](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/denissanga/32/48346_2.png) [@denissanga](https://discourse.nodered.org/u/denissanga)\
**Post date:** [1 December 2022 18:41 UTC](https://discourse.nodered.org/t/ui-text-multi-line/71467/4 "2022-12-01T18:41:37Z")

</div>

thank you very much, just one more question  
If I would like a text box with a fixed width can i set the text in multiline mode automatically. or better can the text adapt to cell dimension in multiline mode?  
many thanks for your help

---

<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:** [31 December 2022 18:42 UTC](https://discourse.nodered.org/t/ui-text-multi-line/71467/5 "2022-12-31T18:42:18Z")

</div>

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