# Send input value on input changes

**URL:** <https://discourse.nodered.org/t/send-input-value-on-input-changes/10638>\
**Category:** General\
**Created:** [29 April 2019 11:17 UTC](https://discourse.nodered.org/t/send-input-value-on-input-changes/10638 "2019-04-29T11:17:39Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![hathemi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hathemi/32/3792_2.png) [@hathemi](https://discourse.nodered.org/u/hathemi)\
**Post date:** [29 April 2019 11:17 UTC](https://discourse.nodered.org/t/send-input-value-on-input-changes/10638/1 "2019-04-29T11:17:39Z")

</div>

How can i send the value of input text when it changes it value ? i have tried msg.send(msg.input) but it doesn't work !!

```auto
	$('#search_field_input').on('input',function(msg){
		msg.input = $("#search_field_input").val();
});

```

Any ideas?

---

<div class="post-metadata">

**Author:** ![hotNipi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hotnipi/32/383_2.png) [@hotNipi](https://discourse.nodered.org/u/hotNipi)\
**Post date:** [29 April 2019 11:18 UTC](https://discourse.nodered.org/t/send-input-value-on-input-changes/10638/2 "2019-04-29T11:18:47Z")

</div>

wasn't it the `change` event you'll need to listen?

---

<div class="post-metadata">

**Author:** ![hathemi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hathemi/32/3792_2.png) [@hathemi](https://discourse.nodered.org/u/hathemi)\
**Post date:** [29 April 2019 11:21 UTC](https://discourse.nodered.org/t/send-input-value-on-input-changes/10638/3 "2019-04-29T11:21:26Z")

</div>

yes it is ! is it possible to send the input value on change event?

---

<div class="post-metadata">

**Author:** ![hotNipi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hotnipi/32/383_2.png) [@hotNipi](https://discourse.nodered.org/u/hotNipi)\
**Post date:** [29 April 2019 12:32 UTC](https://discourse.nodered.org/t/send-input-value-on-input-changes/10638/4 "2019-04-29T12:32:17Z")

</div>

It's hard to tell as it is not clear where and how you are trying to use it. Have you tried to debug the objects you are using? Is the msg object available?

---

<div class="post-metadata">

**Author:** ![hathemi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hathemi/32/3792_2.png) [@hathemi](https://discourse.nodered.org/u/hathemi)\
**Post date:** [29 April 2019 13:16 UTC](https://discourse.nodered.org/t/send-input-value-on-input-changes/10638/5 "2019-04-29T13:16:04Z")

</div>

whenever the input took a value, i want to send it and use it in another node !

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [29 April 2019 14:47 UTC](https://discourse.nodered.org/t/send-input-value-on-input-changes/10638/6 "2019-04-29T14:47:30Z")

</div>

Hi @hathemi

I assume you are using `node-red-dashboard`? Is this in a `ui_template` node?

The sidebar help for the ui\_template node has a section called `Sending a message` that provides an example of sending a message. There are other examples on [flows.nodered.org](http://flows.nodered.org) if you search for them.

---

<div class="post-metadata">

**Author:** ![hathemi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hathemi/32/3792_2.png) [@hathemi](https://discourse.nodered.org/u/hathemi)\
**Post date:** [29 April 2019 14:58 UTC](https://discourse.nodered.org/t/send-input-value-on-input-changes/10638/7 "2019-04-29T14:58:28Z")

</div>

yes you are right. i'am using `ui_template` node. thanks for help.

---

<div class="post-metadata">

**Author:** ![hotNipi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hotnipi/32/383_2.png) [@hotNipi](https://discourse.nodered.org/u/hotNipi)\
**Post date:** [29 April 2019 15:09 UTC](https://discourse.nodered.org/t/send-input-value-on-input-changes/10638/8 "2019-04-29T15:09:01Z")

</div>

Explore this example. Some parts of it are pretty close to your use case.  
[https://flows.nodered.org/flow/a14a02cf13c36b1ce9272dc5e2a1d3e7](https://flows.nodered.org/flow/a14a02cf13c36b1ce9272dc5e2a1d3e7)

---

<div class="post-metadata">

**Author:** ![mike67](https://avatars.discourse-cdn.com/v4/letter/m/ce7236/32.png) [@mike67](https://discourse.nodered.org/u/mike67)\
**Post date:** [29 April 2019 19:06 UTC](https://discourse.nodered.org/t/send-input-value-on-input-changes/10638/9 "2019-04-29T19:06:24Z")

</div>

Hello  
I've not so much experience with node-red, but I found a node wich triggers each time a defined element chnages.  
That's rbe.  
you will see, very easy to use...  
Hope to have helped you.

---

<div class="post-metadata">

**Author:** ![hathemi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hathemi/32/3792_2.png) [@hathemi](https://discourse.nodered.org/u/hathemi)\
**Post date:** [29 April 2019 19:48 UTC](https://discourse.nodered.org/t/send-input-value-on-input-changes/10638/10 "2019-04-29T19:48:49Z")

</div>

thanks a lot. it really helps

---

<div class="post-metadata">

**Author:** ![fernandezjm](https://avatars.discourse-cdn.com/v4/letter/f/9f8e36/32.png) [@fernandezjm](https://discourse.nodered.org/u/fernandezjm)\
**Post date:** [28 May 2019 06:21 UTC](https://discourse.nodered.org/t/send-input-value-on-input-changes/10638/11 "2019-05-28T06:21:19Z")

</div>

I use Report by Exception node
