# Listen to input on dashboard 2 ui-template

**URL:** <https://discourse.nodered.org/t/listen-to-input-on-dashboard-2-ui-template/85545>\
**Category:** Dashboard\
**Tags:** dashboard-2\
**Created:** [15 February 2024 04:43 UTC](https://discourse.nodered.org/t/listen-to-input-on-dashboard-2-ui-template/85545 "2024-02-15T04:43:39Z")\
**Posts on this page:** 1\
**Showing post:** 5

<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:** [15 February 2024 08:50 UTC](https://discourse.nodered.org/t/listen-to-input-on-dashboard-2-ui-template/85545/5 "2024-02-15T08:50:29Z")

</div>

The core missing piece you're looking for is:

```js
watch: {
    msg: function(){        
        // do stuff with msg.payload
    },
}

```

This will run the relevant functionality when a new message is received, in your case, you could run `this.status = msg.payload`

---

_[View the full topic](https://discourse.nodered.org/t/listen-to-input-on-dashboard-2-ui-template/85545)._
