Send input value on input changes

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 !!

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

Any ideas?

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

1 Like

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

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?

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

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 if you search for them.

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

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

1 Like

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.

1 Like

thanks a lot. it really helps

I use Report by Exception node