Hoping someone can help with this. My dashboard has several text input fields that I would like to return to their default state (null) after sending the payload. For my use, I have the text input mode set to number, and the delay is 0.
What I am trying to accomplish is if a user enters 400 and presses the return key, 400 is sent as the message payload and the input field returns to its default state with no entry. What is happening is that the field retains the value, in this case, 400. It is also persistent through a browser refresh.
I have been able to inject a new payload into the text field, for instance, 0 but I have not been able to get this to happen automatically and I would prefer it not have a value at all. I tried connecting the output of the text input to a function, the function then sets a new payload but the text input does not display this new payload. What's odd is that the dashboard refreshes when the payload is injected but not when passed in from a function.
Thanks in advance for your help!
Using a change node and changing the payload to a number set to null clears the text input box on a browser refresh but it doesn't update the dashboard in real time. Tried deleting msg._msgid and all other keys, still wouldn't update the browser in realtime.
The odd thing is that an inject node set to number null does update the browser in realtime.
Viewing the entire msg object in debug and the message created by the change node and inject node look virtually identical (except for _msgid)
What could be different that causes an inject to update the text input in realtime?
Adding a delay node before the change node that sets payload to number null now resets the text input node on the dashboard in real time.
Hope this helps someone!