# Dashboard UI Label

**URL:** <https://discourse.nodered.org/t/dashboard-ui-label/22348>\
**Category:** Dashboard\
**Created:** [28 February 2020 02:29 UTC](https://discourse.nodered.org/t/dashboard-ui-label/22348 "2020-02-28T02:29:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Deon](https://avatars.discourse-cdn.com/v4/letter/d/67e7ee/32.png) [@Deon](https://discourse.nodered.org/u/Deon)\
**Post date:** [28 February 2020 02:29 UTC](https://discourse.nodered.org/t/dashboard-ui-label/22348/1 "2020-02-28T02:29:37Z")

</div>

Hi,

I'm adding some UI widgets into a subflow of which I have multiple copies.  
I'd like to set the label for these widgets using environment variables, but I can't find a efficient and reliable method to achieve this.

The label text can be set to {{msg.label}} which works, but msg.label must be included in every message to the node otherwise the label goes blank. Also, with the chart this method is not reliable with the label later appearing blank despite msg.label being included in every message (for reasons I haven't yet determined).

I haven't found a way to use the msg.ui\_control property.

Is there a method I've missed?

Ideally I believe the label should be set using the msg.ui\_control property, for example msg.ui\_control.label. This would be consistent with other UI settings and I believe reduce the processing load and network traffic using the {{msg.label}} method.

---

<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:** [28 February 2020 11:46 UTC](https://discourse.nodered.org/t/dashboard-ui-label/22348/2 "2020-02-28T11:46:16Z")

</div>

currently the label (and some other key attributes) are excluded from ui\_control... but in principle I can't see why not to allow it.. - though need to check order of precedence in the node - I think if set via ui\_control then that would overwrite/block the use of {{msg.label}} style in the edit config etc... And also for most nodes needs a refresh of the page before the change takes effect ...

---

<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:** [29 March 2020 11:46 UTC](https://discourse.nodered.org/t/dashboard-ui-label/22348/3 "2020-03-29T11:46:18Z")

</div>

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