# Problem sending message from ui-template node

**URL:** <https://discourse.nodered.org/t/problem-sending-message-from-ui-template-node/57469>\
**Category:** Dashboard\
**Tags:** node-red-dashboard\
**Created:** [29 January 2022 21:12 UTC](https://discourse.nodered.org/t/problem-sending-message-from-ui-template-node/57469 "2022-01-29T21:12:01Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![UnborN](https://avatars.discourse-cdn.com/v4/letter/u/4491bb/32.png) [@UnborN](https://discourse.nodered.org/u/UnborN)\
**Post date:** [4 February 2022 15:53 UTC](https://discourse.nodered.org/t/problem-sending-message-from-ui-template-node/57469/10 "2022-02-04T15:53:49Z")

</div>

> [@Jdo300](#):
>
> But in this way, I would need to make a copy of this node to go on every page of the dashboard for it to work

It seems like it .. i did a quick test also and the Tabs dont load until you select them from the sidebar.  
If you add the code to the `<head>` then no access to `scope`.

Interesting finding you did about the inner workings of the Dashboard but without a way to manipulate that code i think we are stack to adding a hidden template to each Tab .. and also add code to check if your html elements are already injected to the top navbar.

**Similar Thread here:**

> [@Bind text in the Dashboard header](https://discourse.nodered.org/t/bind-text-in-the-dashboard-header/23656/5):
>
> If you would like to see it in all dashboards tabs you could use my flow as a base, then place an hidden template node in all tabs (in template node options place it in the body and not in the head section because if in the head it cannot receive msg inputs) in that template just set up the template node to watch for the input: \<script\> (function(scope) { scope.$watch('msg.payload', function(data) { // get the element from the dashoard header and change its status using …

Or an alternative is to look into **[node-red-contrib-uibuilder](https://flows.nodered.org/node/node-red-contrib-uibuilder)**  
that gives you the flexibility to create your own dashboard from scratch with full access to your own code  
but that would require some knowledge of html, css, javascript or any front-end language

---

_[View the full topic](https://discourse.nodered.org/t/problem-sending-message-from-ui-template-node/57469)._
