# Send msg.payload from ui template to nodered

**URL:** <https://discourse.nodered.org/t/send-msg-payload-from-ui-template-to-nodered/87340>\
**Category:** General\
**Created:** [19 April 2024 11:54 UTC](https://discourse.nodered.org/t/send-msg-payload-from-ui-template-to-nodered/87340 "2024-04-19T11:54:31Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [22 April 2024 06:24 UTC](https://discourse.nodered.org/t/send-msg-payload-from-ui-template-to-nodered/87340/3 "2024-04-22T06:24:58Z")

</div>

The built in help has an example of how to send data back from UI template to node-red.

Also, on the forum, search `scope send` in the #Dashboard category.

Here is one such example: [Upload file to SQL table - #4 by Steve-Mcl](https://discourse.nodered.org/t/upload-file-to-sql-table/62440/4) - check out the ui\_template named "Upload Button"

* * *

Alternatively, you could create a http endpoint flow to receive data & use Ajax in your template to POST data back to node-red.

---

_[View the full topic](https://discourse.nodered.org/t/send-msg-payload-from-ui-template-to-nodered/87340)._
