# Template Node - Pass through messages from input

**URL:** <https://discourse.nodered.org/t/template-node-pass-through-messages-from-input/79283>\
**Category:** Dashboard\
**Created:** [18 June 2023 15:51 UTC](https://discourse.nodered.org/t/template-node-pass-through-messages-from-input/79283 "2023-06-18T15:51:36Z")\
**Posts on this page:** 7\
**Page:** 2

<div class="post-metadata">

**Author:** ![Mick](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mick/32/80990_2.png) [@Mick](https://discourse.nodered.org/u/Mick)\
**Post date:** [20 June 2023 12:42 UTC](https://discourse.nodered.org/t/template-node-pass-through-messages-from-input/79283/22 "2023-06-20T12:42:15Z")

</div>

Maybe my implementation was naïve. When I update the toolbar I have to have a ui\_template for each page I need to update. Instead of wiring directly from the function node, it looked cleaner to just forward the output of the ui\_template node to the next ui\_template node.

Here is how I am using it... One template per page

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/2/a20c3c7b54462598b3eae50e57c767d4f5e2fe33.png)

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/d/3d5f969d456cbda69fe7434cd9d395b78c875da2.png)

---

<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:** [20 June 2023 12:47 UTC](https://discourse.nodered.org/t/template-node-pass-through-messages-from-input/79283/23 "2023-06-20T12:47:01Z")

</div>

Yes. If you send it to the ui template node it all goes to the browser side.

---

<div class="post-metadata">

**Author:** ![Mick](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mick/32/80990_2.png) [@Mick](https://discourse.nodered.org/u/Mick)\
**Post date:** [20 June 2023 12:48 UTC](https://discourse.nodered.org/t/template-node-pass-through-messages-from-input/79283/24 "2023-06-20T12:48:21Z")

</div>

Am I incorrect in assuming I need one ui\_template per page. If that is true then I have a problem somewhere else as with out it, the other pages won't update.

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [20 June 2023 12:53 UTC](https://discourse.nodered.org/t/template-node-pass-through-messages-from-input/79283/25 "2023-06-20T12:53:40Z")

</div>

So forgive my confusion

Do all msg that enter ui-template go to browser? even when no msg.payload. As testing seem to suggest they do.

If yes, whats the harm of passing the pass through msg if it has no payload?

---

<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:** [20 June 2023 12:58 UTC](https://discourse.nodered.org/t/template-node-pass-through-messages-from-input/79283/26 "2023-06-20T12:58:32Z")

</div>

If there is no payload they don’t go to browser ( or pass thru)

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [20 June 2023 13:15 UTC](https://discourse.nodered.org/t/template-node-pass-through-messages-from-input/79283/27 "2023-06-20T13:15:58Z")

</div>

I think you are mistaken  
As when i send msg.test with no other properties to a ui-template scope.$watch, the msg is received at the browser and displayed.

---

<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:** [4 July 2023 13:16 UTC](https://discourse.nodered.org/t/template-node-pass-through-messages-from-input/79283/28 "2023-07-04T13:16:46Z")

</div>

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

[Previous page](https://discourse.nodered.org/t/template-node-pass-through-messages-from-input/79283.md?page=1)
