Hello everyone!
I have a question: I have two numeric inputs filled with values (for testing purposes from inject nodes). If the user hits the "save" button, the values should be returned. Looks like this:
The flow is:
[{"id":"3569b227.fc29ce","type":"ui_numeric","z":"ec99b4da.293d4","name":"min","label":"min","tooltip":"","group":"89d6839e.8d47d8","order":2,"width":3,"height":1,"wrap":false,"passthru":false,"topic":"min","topicType":"str","format":"{{value}}","min":0,"max":"100","step":"5","x":350,"y":1040,"wires":[["42da1c55.d71764"]]},{"id":"dd5ddc3e.500d8","type":"ui_numeric","z":"ec99b4da.293d4","name":"max","label":"max","tooltip":"","group":"89d6839e.8d47d8","order":3,"width":3,"height":1,"wrap":true,"passthru":false,"topic":"max","topicType":"str","format":"{{value}}","min":0,"max":"100","step":"5","x":350,"y":1120,"wires":[["42da1c55.d71764"]]},{"id":"83f310d8.0a22b","type":"inject","z":"ec99b4da.293d4","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"30","payloadType":"num","x":170,"y":1120,"wires":[["dd5ddc3e.500d8"]]},{"id":"f334195b.42c168","type":"inject","z":"ec99b4da.293d4","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"10","payloadType":"num","x":170,"y":1040,"wires":[["3569b227.fc29ce"]]},{"id":"42da1c55.d71764","type":"join","z":"ec99b4da.293d4","name":"","mode":"custom","build":"object","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":false,"timeout":"","count":"","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":570,"y":1080,"wires":[["4fca7c68.a8c934"]]},{"id":"4fca7c68.a8c934","type":"debug","z":"ec99b4da.293d4","name":"Input","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":730,"y":1080,"wires":[]},{"id":"c7ed725b.53073","type":"ui_button","z":"ec99b4da.293d4","name":"","group":"89d6839e.8d47d8","order":4,"width":0,"height":0,"passthru":false,"label":"save interval","tooltip":"","color":"","bgcolor":"","icon":"","payload":"","payloadType":"str","topic":"topic","topicType":"msg","x":170,"y":1200,"wires":[["9be596c6.f41de8"]]},{"id":"9be596c6.f41de8","type":"change","z":"ec99b4da.293d4","name":"","rules":[{"t":"set","p":"complete","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":370,"y":1200,"wires":[["42da1c55.d71764"]]},{"id":"89d6839e.8d47d8","type":"ui_group","name":"Interval Input","tab":"69262da4.f388b4","order":1,"disp":true,"width":"6","collapse":false},{"id":"69262da4.f388b4","type":"ui_tab","name":"Interval","icon":"dashboard","order":1,"disabled":false,"hidden":false}]
The problem I'm facing is as follows: the numeric input fields pass their values to the join node only if the user changes the values. Sometimes only one of the two values is changed, thus only one value is returned in the debug output. Is there a way to (kind of) trigger the input nodes to pass their values along when pushing the "save" button?
Thanks in advance!
Side note: I could use the ui_form node, but I don't want to. With the numeric input nodes I have control over the allowed ranges...