# Watchers are not working inside the template

**URL:** <https://discourse.nodered.org/t/watchers-are-not-working-inside-the-template/93658>\
**Category:** Dashboard\
**Tags:** dashboard-2\
**Created:** [3 December 2024 11:21 UTC](https://discourse.nodered.org/t/watchers-are-not-working-inside-the-template/93658 "2024-12-03T11:21:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Subavarsha](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/subavarsha/32/92880_2.png) [@Subavarsha](https://discourse.nodered.org/u/Subavarsha)\
**Post date:** [3 December 2024 11:21 UTC](https://discourse.nodered.org/t/watchers-are-not-working-inside-the-template/93658/1 "2024-12-03T11:21:58Z")

</div>

Hi  
I tried to use watch method inside the template node but it is not working  
I have provided sample flow  
can you please check this  
[flows (28).json](https://discourse.nodered.org/uploads/short-url/cMvcHnvdSA6oKQuE7TQ478nnclQ.json) (4.4 KB)

---

<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:** [3 December 2024 11:41 UTC](https://discourse.nodered.org/t/watchers-are-not-working-inside-the-template/93658/2 "2024-12-03T11:41:28Z")

</div>

You will need to share whether you are using Dashboard 1 or 2.

---

<div class="post-metadata">

**Author:** ![Subavarsha](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/subavarsha/32/92880_2.png) [@Subavarsha](https://discourse.nodered.org/u/Subavarsha)\
**Post date:** [3 December 2024 11:41 UTC](https://discourse.nodered.org/t/watchers-are-not-working-inside-the-template/93658/3 "2024-12-03T11:41:54Z")

</div>

Dasboard 2

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [3 December 2024 15:17 UTC](https://discourse.nodered.org/t/watchers-are-not-working-inside-the-template/93658/4 "2024-12-03T15:17:27Z")

</div>

See [Template ui-template | Node-RED Dashboard 2.0](https://dashboard.flowfuse.com/nodes/widgets/ui-template.html) for how to use watch in a template.

In future when posting please paste the code in line as described in [How to share code or flow json](https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506)

---

<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:** [2 January 2025 15:18 UTC](https://discourse.nodered.org/t/watchers-are-not-working-inside-the-template/93658/5 "2025-01-02T15:18:04Z")

</div>

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