# Multiple text fields in one UI Template

**URL:** <https://discourse.nodered.org/t/multiple-text-fields-in-one-ui-template/23287>\
**Category:** General\
**Created:** [18 March 2020 19:32 UTC](https://discourse.nodered.org/t/multiple-text-fields-in-one-ui-template/23287 "2020-03-18T19:32:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sean-McG](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sean-mcg/32/54677_2.png) [@Sean-McG](https://discourse.nodered.org/u/Sean-McG)\
**Post date:** [18 March 2020 19:32 UTC](https://discourse.nodered.org/t/multiple-text-fields-in-one-ui-template/23287/1 "2020-03-18T19:32:20Z")

</div>

Hi,

The following ui template displays a name and a picture. But how do i add more text fields eg msg.text msg.time ?

```auto
<div ng-bind-html="msg.topic"> </div>
<img ng-src={{msg.image}} height="50" width="50" />
```

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [20 March 2020 21:29 UTC](https://discourse.nodered.org/t/multiple-text-fields-in-one-ui-template/23287/2 "2020-03-20T21:29:18Z")

</div>

There is no need to use the `ng-bind-html` for msg.topic since that will only ever be text and not contain html.

The standard way to output is, I think, listed in the help information.

```auto
<div>{{payload}}</div>
<div>{{text}}</div>

```

I don't think you need the `msg.` prefix though I may be wrong. I don't use Dashboard very often.

---

<div class="post-metadata">

**Author:** ![Sean-McG](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sean-mcg/32/54677_2.png) [@Sean-McG](https://discourse.nodered.org/u/Sean-McG)\
**Post date:** [21 March 2020 15:51 UTC](https://discourse.nodered.org/t/multiple-text-fields-in-one-ui-template/23287/3 "2020-03-21T15:51:36Z")

</div>

Thanks,  
msg. is required btw

---

<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:** [20 May 2020 16:05 UTC](https://discourse.nodered.org/t/multiple-text-fields-in-one-ui-template/23287/4 "2020-05-20T16:05:10Z")

</div>

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