# Access msg object in dashboard ui\_template

**URL:** https://discourse.nodered.org/t/access-msg-object-in-dashboard-ui-template/5502
**Category:** Dashboard
**Created:** [5 December 2018 14:24 UTC](https://discourse.nodered.org/t/access-msg-object-in-dashboard-ui-template/5502 "2018-12-05T14:24:33Z")
**Posts on this page:** 1
**Showing post:** 16

<div class="post-metadata">

### Author: ![andor](https://avatars.discourse-cdn.com/v4/letter/a/a698b9/32.png) [@andor](https://discourse.nodered.org/u/andor)
#### Post date: [16 January 2020 14:16 UTC](https://discourse.nodered.org/t/access-msg-object-in-dashboard-ui-template/5502/16 "2020-01-16T14:16:22Z")

</div>

Hi guys,  
sorry for commenting on this topic after one year:

I am a little bit confused, since the linked reference ([javascript:watch object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/watch)) is claiming, that you should not use the watch object since it is not supported by any current browser anymore. Does this recommendation not apply to the ui\_template node?

Is there any other way how to get the msg.payload object into a script block within an ui\_template?

---

_[View the full topic](https://discourse.nodered.org/t/access-msg-object-in-dashboard-ui-template/5502)._
