# Sending msg.payload from ui template

**URL:** <https://discourse.nodered.org/t/sending-msg-payload-from-ui-template/61453>\
**Category:** Dashboard\
**Created:** [18 April 2022 17:07 UTC](https://discourse.nodered.org/t/sending-msg-payload-from-ui-template/61453 "2022-04-18T17:07:29Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![paulalsmith1000](https://avatars.discourse-cdn.com/v4/letter/p/d07c76/32.png) [@paulalsmith1000](https://discourse.nodered.org/u/paulalsmith1000)\
**Post date:** [21 April 2022 09:06 UTC](https://discourse.nodered.org/t/sending-msg-payload-from-ui-template/61453/3 "2022-04-21T09:06:38Z")

</div>

Hi Krambriw

Thanks v much for your answer, but it doesn't seem to work.

I assumed from what you said that I could do the following:-

```auto
function send_payload(row_value)
        {
        alert(row_value);
        this.scope.send({payload:'do_something'});
        
        }

```

And then call this function from the other, but nothing happens.

Sorry if I haven't quite understood you.

Kind regards

Paul

---

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