Can I make these fields retentive?

I have a form node:
image

This form helps the user configure the Pi to look for different devices on Modbus TCP. I'm using a form so the IP address is flexible.

These fields are enterable, but they are not retained. Meaning, if I reboot those fields will go blank. The name field is used else where. I can see the fields are blank after a reboot.

The IP address and port interestingly still works. I don't lose connection.

How do i get these fields to retain their entry after bootup? Especially the name field.

[{"id":"dbf7fbb9.bab5b8","type":"tab","label":"Configuration","disabled":false,"info":""},{"id":"5e8844296c95858c","type":"modbus-flex-connector","z":"dbf7fbb9.bab5b8","name":"","maxReconnectsPerMinute":4,"emptyQueue":false,"showStatusActivities":false,"showErrors":false,"server":"bf81420f.323c4","x":570,"y":1340,"wires":[[]]},{"id":"de343ff69f1f4da3","type":"inject","z":"dbf7fbb9.bab5b8","name":"IP: 10.13.1.74","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":170,"y":1300,"wires":[["b8f8914c9d5d69ae"]]},{"id":"cd1baf7d357f6329","type":"inject","z":"dbf7fbb9.bab5b8","name":"IP: 10.13.1.75","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":170,"y":1380,"wires":[["a46d180a4664a236"]]},{"id":"b8f8914c9d5d69ae","type":"function","z":"dbf7fbb9.bab5b8","name":"","func":"msg.payload = {\n    'connectorType': 'TCP',\n    'tcpHost': '10.13.1.74',\n    'tcpPort': '502',\n    'unitId': 1\n}\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":360,"y":1300,"wires":[["5e8844296c95858c","6d00cc04.9cb7c4"]]},{"id":"a46d180a4664a236","type":"function","z":"dbf7fbb9.bab5b8","name":"","func":"msg.payload = {\n    'connectorType': 'TCP',\n    'tcpHost': '10.13.1.75',\n    'tcpPort': '502',\n    'unitId': 1\n}\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":360,"y":1380,"wires":[["5e8844296c95858c"]]},{"id":"b90d7f7951814165","type":"comment","z":"dbf7fbb9.bab5b8","name":"Change Mod. Config Settings","info":"","x":600,"y":1280,"wires":[]},{"id":"1ffd0333.daa4ed","type":"ui_form","z":"dbf7fbb9.bab5b8","name":"","label":"IP Address 1750+ 2","group":"a62c57dc.749fc8","order":2,"width":"6","height":"2","options":[{"label":"Enter IP Address","value":"IP_2","type":"text","required":false,"rows":null},{"label":"Enter Port","value":"port_2","type":"text","required":false,"rows":null},{"label":"Enter Name","value":"Name_2","type":"text","required":false,"rows":null}],"formValue":{"IP_2":"","port_2":"","Name_2":""},"payload":"","submit":"submit","cancel":"cancel","topic":"","topicType":"str","splitLayout":false,"className":"","x":230,"y":560,"wires":[["37ff7824.ab6298","6b340680.b86e98"]]},{"id":"7b2584a0.598d3c","type":"ui_form","z":"dbf7fbb9.bab5b8","name":"","label":"IP Address 1750+ 1","group":"27ef8362.1b6ddc","order":1,"width":"6","height":"2","options":[{"label":"Enter IP Address","value":"IP_1","type":"text","required":false,"rows":null},{"label":"Enter Port","value":"port_1","type":"text","required":false,"rows":null},{"label":"Enter Name","value":"Name_1","type":"text","required":false,"rows":null}],"formValue":{"IP_1":"","port_1":"","Name_1":""},"payload":"","submit":"submit","cancel":"cancel","topic":"","topicType":"str","splitLayout":false,"className":"","x":210,"y":120,"wires":[["cd3bc45a.9d3728","cca34d21.b4578"]]},{"id":"37ff7824.ab6298","type":"debug","z":"dbf7fbb9.bab5b8","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":430,"y":520,"wires":[]},{"id":"6d00cc04.9cb7c4","type":"debug","z":"dbf7fbb9.bab5b8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":530,"y":1240,"wires":[]},{"id":"6b340680.b86e98","type":"change","z":"dbf7fbb9.bab5b8","name":"","rules":[{"t":"set","p":"IP_2","pt":"global","to":"payload.IP_2","tot":"msg"},{"t":"set","p":"port_2","pt":"global","to":"payload.port_2","tot":"msg"},{"t":"set","p":"sysName_2","pt":"global","to":"payload.Name_2","tot":"msg"},{"t":"set","p":"payload","pt":"msg","to":"payload.Name_2","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":440,"y":560,"wires":[["b731738.c5bde9","cff880b1.cca2b","a2b05a2b.35cd48","6279432c46b7c088","d44449b3f63db0f0","92996a76683e3980"]]},{"id":"b731738.c5bde9","type":"function","z":"dbf7fbb9.bab5b8","name":"","func":"var tcpHost = global.get('IP_2');\nvar tcpPort = global.get('port_2');\nvar name = global.get(\"sysName_2\");\n\nmsg.payload = {\"connectorType\": \"TCP\",\n                \"tcpHost\": global.get(\"IP_2\"), \n                \"tcpPort\": global.get(\"port_2\"),\n                \"unitId\": \"2\"};\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":640,"y":520,"wires":[["8680e3ab.eb804","b931e298.7959f"]]},{"id":"8680e3ab.eb804","type":"debug","z":"dbf7fbb9.bab5b8","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":810,"y":560,"wires":[]},{"id":"b931e298.7959f","type":"modbus-flex-connector","z":"dbf7fbb9.bab5b8","name":"","maxReconnectsPerMinute":4,"emptyQueue":false,"showStatusActivities":false,"showErrors":false,"server":"bf81420f.323c4","x":890,"y":480,"wires":[[]]},{"id":"cd3bc45a.9d3728","type":"debug","z":"dbf7fbb9.bab5b8","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":410,"y":80,"wires":[]},{"id":"cca34d21.b4578","type":"change","z":"dbf7fbb9.bab5b8","name":"","rules":[{"t":"set","p":"IP_1","pt":"global","to":"payload.IP_1","tot":"msg"},{"t":"set","p":"port_1","pt":"global","to":"payload.port_1","tot":"msg"},{"t":"set","p":"sysName_1","pt":"global","to":"payload.Name_1","tot":"msg"},{"t":"set","p":"payload","pt":"msg","to":"payload.Name_1","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":420,"y":120,"wires":[["8af0c517.45a858","d22feb.36281018","c2ad8d7d.9f3ab","336ba4dc0cf88924","25da6d13814c3157","537febc27a752ed1"]]},{"id":"8af0c517.45a858","type":"function","z":"dbf7fbb9.bab5b8","name":"","func":"var tcpHost = global.get('IP_1');\nvar tcpPort = global.get('port_1');\n\nmsg.payload = {\"connectorType\": \"TCP\",\n                \"tcpHost\": global.get(\"IP_1\"), \n                \"tcpPort\": global.get(\"port_1\"),\n                \"unitId\": \"1\"};\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":600,"y":120,"wires":[["f33bcd6a.dd90d","350d4e9a.57e722"]]},{"id":"f33bcd6a.dd90d","type":"debug","z":"dbf7fbb9.bab5b8","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":790,"y":120,"wires":[]},{"id":"350d4e9a.57e722","type":"modbus-flex-connector","z":"dbf7fbb9.bab5b8","name":"","maxReconnectsPerMinute":4,"emptyQueue":false,"showStatusActivities":false,"showErrors":false,"server":"fdbc6bac.988e58","x":870,"y":40,"wires":[[]]},{"id":"cff880b1.cca2b","type":"ui_text","z":"dbf7fbb9.bab5b8","group":"f9407652.65bd68","order":1,"width":0,"height":0,"name":"sys label 2","label":"<font size = 6>System:","format":"<font size = 6>{{msg.payload}}","layout":"row-center","className":"","x":810,"y":640,"wires":[]},{"id":"a2b05a2b.35cd48","type":"debug","z":"dbf7fbb9.bab5b8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":810,"y":780,"wires":[]},{"id":"d22feb.36281018","type":"ui_text","z":"dbf7fbb9.bab5b8","group":"f20210b7.c6231","order":1,"width":0,"height":0,"name":"sys label 1","label":"<font size = 6>System:","format":"<font size = 6>{{msg.payload}}","layout":"row-center","className":"","x":610,"y":180,"wires":[]},{"id":"c2ad8d7d.9f3ab","type":"debug","z":"dbf7fbb9.bab5b8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":610,"y":320,"wires":[]},{"id":"e1a22b2.00dcdd8","type":"ui_dropdown","z":"dbf7fbb9.bab5b8","name":"","label":"System Type","tooltip":"","place":"Select option","group":"27ef8362.1b6ddc","order":6,"width":"6","height":"1","passthru":true,"multiple":false,"options":[{"label":"1750+","value":"0","type":"str"},{"label":"2150+","value":"1","type":"str"},{"label":"2850+","value":"3","type":"str"}],"payload":"","topic":"","x":230,"y":1040,"wires":[["3aa9358d.a278aa"]]},{"id":"3aa9358d.a278aa","type":"debug","z":"dbf7fbb9.bab5b8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":430,"y":1040,"wires":[]},{"id":"30ac6262.8e221e","type":"ui_dropdown","z":"dbf7fbb9.bab5b8","name":"","label":"System Type","tooltip":"","place":"Select option","group":"a62c57dc.749fc8","order":6,"width":"6","height":"1","passthru":true,"multiple":false,"options":[{"label":"1750+","value":"0","type":"str"},{"label":"2150+","value":"1","type":"str"},{"label":"2850+","value":"3","type":"str"}],"payload":"","topic":"","x":230,"y":1140,"wires":[["8cd32f10.5a636"]]},{"id":"8cd32f10.5a636","type":"debug","z":"dbf7fbb9.bab5b8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":430,"y":1140,"wires":[]},{"id":"336ba4dc0cf88924","type":"ui_text","z":"dbf7fbb9.bab5b8","group":"bbc3532f.41ca7","order":1,"width":0,"height":0,"name":"Graph Label sys1","label":"<font size = 6>System:","format":"<font size = 6>{{msg.payload}}","layout":"row-center","className":"","x":630,"y":220,"wires":[]},{"id":"6279432c46b7c088","type":"ui_text","z":"dbf7fbb9.bab5b8","group":"6c2edab55e2f57f0","order":1,"width":0,"height":0,"name":"graph sys 2","label":"<font size = 6>System:","format":"<font size = 6>{{msg.payload}}","layout":"row-center","className":"","x":810,"y":680,"wires":[]},{"id":"d44449b3f63db0f0","type":"function","z":"dbf7fbb9.bab5b8","name":"","func":"var tcpHost = global.get('IP_2');\nvar tcpPort = global.get('port_2');\nvar name = global.get(\"sysName_2\");\n\nmsg.payload = {\"connectorType\": \"TCP\",\n                \"IP_2\": global.get(\"IP_2\"), \n                \"port_2\": global.get(\"port_2\"),\n                \"Name_2\": global.get(\"sysName_2\"),\n                \"unitId\": \"2\"};\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":440,"y":640,"wires":[["1ffd0333.daa4ed","f18b2b0922f30851"]]},{"id":"f18b2b0922f30851","type":"debug","z":"dbf7fbb9.bab5b8","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":610,"y":740,"wires":[]},{"id":"25da6d13814c3157","type":"function","z":"dbf7fbb9.bab5b8","name":"","func":"var tcpHost = global.get('IP_1');\nvar tcpPort = global.get('port_1');\nvar name = global.get(\"sysName_1\");\n\nmsg.payload = {\"connectorType\": \"TCP\",\n                \"IP_1\": global.get(\"IP_1\"), \n                \"port_1\": global.get(\"port_1\"),\n                \"Name_1\": global.get(\"sysName_1\"),\n                \"unitId\": \"1\"};\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":400,"y":200,"wires":[["7b2584a0.598d3c","7b7ad3471d16fcac"]]},{"id":"7b7ad3471d16fcac","type":"debug","z":"dbf7fbb9.bab5b8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":610,"y":380,"wires":[]},{"id":"537febc27a752ed1","type":"ui_text","z":"dbf7fbb9.bab5b8","group":"a3e59a7401c39993","order":1,"width":0,"height":0,"name":"1750+ 1 Alarms","label":"<font size = 6>System: ","format":"<font size = 6>{{msg.payload}}","layout":"row-center","className":"","x":620,"y":260,"wires":[]},{"id":"92996a76683e3980","type":"ui_text","z":"dbf7fbb9.bab5b8","group":"bcc7110e43622bb3","order":1,"width":0,"height":0,"name":"1750+ 2 Alarms","label":"<font size = 6>System: ","format":"<font size = 6>{{msg.payload}}","layout":"row-center","className":"","x":820,"y":720,"wires":[]},{"id":"bf81420f.323c4","type":"modbus-client","name":"1750+ 2","clienttype":"tcp","bufferCommands":true,"stateLogEnabled":true,"queueLogEnabled":true,"tcpHost":"10.13.1.74","tcpPort":"502","tcpType":"DEFAULT","serialPort":"/dev/ttyUSB","serialType":"RTU-BUFFERD","serialBaudrate":"9600","serialDatabits":"8","serialStopbits":"1","serialParity":"none","serialConnectionDelay":"100","unit_id":1,"commandDelay":1,"clientTimeout":1000,"reconnectOnTimeout":true,"reconnectTimeout":2000,"parallelUnitIdsAllowed":true},{"id":"a62c57dc.749fc8","type":"ui_group","name":"System 2","tab":"a2c64017.1f61b","order":2,"disp":true,"width":"6","collapse":false},{"id":"27ef8362.1b6ddc","type":"ui_group","name":"System 1","tab":"a2c64017.1f61b","order":1,"disp":true,"width":"6","collapse":false},{"id":"fdbc6bac.988e58","type":"modbus-client","name":"1750+","clienttype":"tcp","bufferCommands":true,"stateLogEnabled":false,"queueLogEnabled":false,"tcpHost":"10.13.1.71","tcpPort":"502","tcpType":"DEFAULT","serialPort":"/dev/ttyUSB","serialType":"RTU-BUFFERD","serialBaudrate":"9600","serialDatabits":"8","serialStopbits":"1","serialParity":"none","serialConnectionDelay":"100","unit_id":1,"commandDelay":1,"clientTimeout":1000,"reconnectOnTimeout":true,"reconnectTimeout":2000,"parallelUnitIdsAllowed":true},{"id":"f9407652.65bd68","type":"ui_group","name":"1750+ 2","tab":"a1387b82.164db8","order":2,"disp":false,"width":"10","collapse":false},{"id":"f20210b7.c6231","type":"ui_group","name":"1750+ 1","tab":"a1387b82.164db8","order":1,"disp":false,"width":"10","collapse":false},{"id":"bbc3532f.41ca7","type":"ui_group","name":"SYS1","tab":"1ff97cd4.681d5b","order":1,"disp":false,"width":"12","collapse":false,"className":""},{"id":"6c2edab55e2f57f0","type":"ui_group","name":"SYS2","tab":"1ff97cd4.681d5b","order":2,"disp":false,"width":12,"collapse":false,"className":""},{"id":"a3e59a7401c39993","type":"ui_group","name":"1750+ 1 Alarms","tab":"2034ad566dd52e42","order":1,"disp":false,"width":"10","collapse":false,"className":""},{"id":"bcc7110e43622bb3","type":"ui_group","name":"1750+ 2 Alarms","tab":"2034ad566dd52e42","order":2,"disp":false,"width":10,"collapse":false,"className":""},{"id":"a2c64017.1f61b","type":"ui_tab","name":"Configuration","icon":"dashboard","order":5,"disabled":false,"hidden":false},{"id":"a1387b82.164db8","type":"ui_tab","name":"Home","icon":"dashboard","order":1,"disabled":false,"hidden":false},{"id":"1ff97cd4.681d5b","type":"ui_tab","name":"Graphs","icon":"dashboard","order":2,"disabled":false,"hidden":false},{"id":"2034ad566dd52e42","type":"ui_tab","name":"Alarms","icon":"dashboard","order":3,"disabled":false,"hidden":false}]

Here is an example the inject will restore the stored flow variable at reboot, the wire back from the change node will rest the submitted values.

[{"id":"e0b0c46a.c72fb8","type":"inject","z":"dbf7fbb9.bab5b8","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":true,"onceDelay":0.1,"topic":"","payload":"formhold","payloadType":"flow","x":150,"y":100,"wires":[["7b2584a0.598d3c"]]},{"id":"7b2584a0.598d3c","type":"ui_form","z":"dbf7fbb9.bab5b8","name":"","label":"IP Address 1750+ 1","group":"27ef8362.1b6ddc","order":1,"width":"6","height":"2","options":[{"label":"Enter IP Address","value":"IP_1","type":"text","required":false,"rows":null},{"label":"Enter Port","value":"port_1","type":"text","required":false,"rows":null},{"label":"Enter Name","value":"Name_1","type":"text","required":false,"rows":null}],"formValue":{"IP_1":"","port_1":"","Name_1":""},"payload":"","submit":"submit","cancel":"cancel","topic":"","topicType":"str","splitLayout":false,"x":390,"y":100,"wires":[["cca34d21.b4578","1e0b71f7.e59c4e"]]},{"id":"cca34d21.b4578","type":"change","z":"dbf7fbb9.bab5b8","name":"","rules":[{"t":"set","p":"formhold","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":380,"y":40,"wires":[["7b2584a0.598d3c"]]},{"id":"1e0b71f7.e59c4e","type":"debug","z":"dbf7fbb9.bab5b8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":650,"y":120,"wires":[]},{"id":"27ef8362.1b6ddc","type":"ui_group","name":"System 1","tab":"a2c64017.1f61b","order":1,"disp":true,"width":"6","collapse":false},{"id":"a2c64017.1f61b","type":"ui_tab","name":"Configuration","icon":"dashboard","order":5,"disabled":false,"hidden":false}]

[edit] or you could use ui-control to watch for events, as simple example

[{"id":"dbf7fbb9.bab5b8","type":"tab","label":"Configuration","disabled":false,"info":""},{"id":"7b2584a0.598d3c","type":"ui_form","z":"dbf7fbb9.bab5b8","name":"","label":"IP Address 1750+ 1","group":"27ef8362.1b6ddc","order":1,"width":"6","height":"2","options":[{"label":"Enter IP Address","value":"IP_1","type":"text","required":false,"rows":null},{"label":"Enter Port","value":"port_1","type":"text","required":false,"rows":null},{"label":"Enter Name","value":"Name_1","type":"text","required":false,"rows":null}],"formValue":{"IP_1":"","port_1":"","Name_1":""},"payload":"","submit":"submit","cancel":"cancel","topic":"","topicType":"str","splitLayout":false,"x":390,"y":100,"wires":[["1e0b71f7.e59c4e","cca34d21.b4578"]]},{"id":"1e0b71f7.e59c4e","type":"debug","z":"dbf7fbb9.bab5b8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":650,"y":120,"wires":[]},{"id":"cca34d21.b4578","type":"change","z":"dbf7fbb9.bab5b8","name":"","rules":[{"t":"set","p":"formhold","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":380,"y":40,"wires":[["7b2584a0.598d3c"]]},{"id":"c22bd890.5c33b","type":"change","z":"dbf7fbb9.bab5b8","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"formhold","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":300,"y":160,"wires":[["7b2584a0.598d3c"]]},{"id":"a55440b4.08dfd8","type":"ui_ui_control","z":"dbf7fbb9.bab5b8","name":"","events":"connect","x":110,"y":160,"wires":[["c22bd890.5c33b"]]},{"id":"27ef8362.1b6ddc","type":"ui_group","name":"System 1","tab":"a2c64017.1f61b","order":1,"disp":true,"width":"6","collapse":false},{"id":"a2c64017.1f61b","type":"ui_tab","name":"Configuration","icon":"dashboard","order":5,"disabled":false,"hidden":false}]

I tried the 2 flows and they don't restore the flow variable. The msg.payload at the inject node becomes undefined after a reboot resulting a null entry into the form.

In your 2nd flow, you are doing something similar where you use the ui control node to start the "injection" of flow.formhold into msg.payload. Again, flow.formhold becomes undefined after a reboot.

edit your setting json to use file storage context
https://nodered.org/docs/user-guide/context#context-stores

Separately to @E1cid's suggestion, which is perfectly valid, are you using MQTT? If so then you can use a Retained Topic to save the value over a restart.

That did it. I changed the settings.js file, then did the test. But I didn't wait 30sec to write to the file so I thought it didn't work.

It looks like it is storing to the Pi. That's good.
But on bootup it doesn't autofill the form with the payload. I have to manually refresh the screen.

@Colin - No I'm not using MQTT.

Code looks like this now.

[{"id":"368e5e5ea9463c23","type":"tab","label":"Flow 1","disabled":false,"info":"","env":[]},{"id":"52ec11d219c28718","type":"ui_form","z":"368e5e5ea9463c23","name":"","label":"IP Address 1750+ test","group":"87daf6bf91ebce67","order":1,"width":"6","height":"2","options":[{"label":"Enter IP Address","value":"IP_1","type":"text","required":false,"rows":null},{"label":"Enter Port","value":"port_1","type":"text","required":false,"rows":null},{"label":"Enter Name","value":"Name_1","type":"text","required":false,"rows":null}],"formValue":{"IP_1":"","port_1":"","Name_1":""},"payload":"","submit":"submit","cancel":"cancel","topic":"","topicType":"str","splitLayout":false,"className":"","x":580,"y":280,"wires":[["826c5e5d6dab66e7","685ec4296335c397"]]},{"id":"826c5e5d6dab66e7","type":"debug","z":"368e5e5ea9463c23","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":770,"y":280,"wires":[]},{"id":"636dc7f9dcaee2cd","type":"ui_ui_control","z":"368e5e5ea9463c23","name":"","events":"all","x":260,"y":400,"wires":[["661eecfe6f0e1366"]]},{"id":"661eecfe6f0e1366","type":"change","z":"368e5e5ea9463c23","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"formhold","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":400,"y":460,"wires":[["52ec11d219c28718","cdb72a70ededfb17"]]},{"id":"685ec4296335c397","type":"change","z":"368e5e5ea9463c23","name":"","rules":[{"t":"set","p":"formhold","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":530,"y":200,"wires":[["52ec11d219c28718"]]},{"id":"cdb72a70ededfb17","type":"debug","z":"368e5e5ea9463c23","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":650,"y":360,"wires":[]},{"id":"241737040156cef1","type":"inject","z":"368e5e5ea9463c23","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":270,"y":560,"wires":[["661eecfe6f0e1366"]]},{"id":"87daf6bf91ebce67","type":"ui_group","name":"TESTBOX","tab":"7353d1a6.00acc","order":1,"disp":true,"width":"6","collapse":false,"className":""},{"id":"7353d1a6.00acc","type":"ui_tab","name":"Sandbox","icon":"dashboard","order":7,"disabled":false,"hidden":false}]

You have not checked "inject once after 0.1 second" in the inject node.

I have something like this now:

[{"id":"52ec11d219c28718","type":"ui_form","z":"368e5e5ea9463c23","name":"","label":"IP Address 1750+ test","group":"87daf6bf91ebce67","order":1,"width":"6","height":"2","options":[{"label":"Enter IP Address","value":"IP_1","type":"text","required":false,"rows":null},{"label":"Enter Port","value":"port_1","type":"text","required":false,"rows":null},{"label":"Enter Name","value":"Name_1","type":"text","required":false,"rows":null}],"formValue":{"IP_1":"","port_1":"","Name_1":""},"payload":"","submit":"submit","cancel":"cancel","topic":"","topicType":"str","splitLayout":false,"className":"","x":580,"y":280,"wires":[["826c5e5d6dab66e7","685ec4296335c397"]]},{"id":"826c5e5d6dab66e7","type":"debug","z":"368e5e5ea9463c23","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":770,"y":280,"wires":[]},{"id":"636dc7f9dcaee2cd","type":"ui_ui_control","z":"368e5e5ea9463c23","name":"","events":"all","x":140,"y":460,"wires":[["661eecfe6f0e1366","bb31241a07624c35"]]},{"id":"661eecfe6f0e1366","type":"change","z":"368e5e5ea9463c23","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"formhold","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":400,"y":460,"wires":[["52ec11d219c28718","cdb72a70ededfb17"]]},{"id":"685ec4296335c397","type":"change","z":"368e5e5ea9463c23","name":"","rules":[{"t":"set","p":"formhold","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":530,"y":200,"wires":[["52ec11d219c28718"]]},{"id":"cdb72a70ededfb17","type":"debug","z":"368e5e5ea9463c23","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":810,"y":460,"wires":[]},{"id":"241737040156cef1","type":"inject","z":"368e5e5ea9463c23","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":true,"onceDelay":0.1,"topic":"","payloadType":"date","x":280,"y":560,"wires":[["661eecfe6f0e1366"]]},{"id":"bb31241a07624c35","type":"debug","z":"368e5e5ea9463c23","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":170,"y":380,"wires":[]},{"id":"7d103a9f14f40ea1","type":"inject","z":"368e5e5ea9463c23","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":true,"onceDelay":0.1,"topic":"","payload":"formhold","payloadType":"flow","x":300,"y":280,"wires":[["52ec11d219c28718"]]},{"id":"87daf6bf91ebce67","type":"ui_group","name":"TESTBOX","tab":"7353d1a6.00acc","order":1,"disp":true,"width":"6","collapse":false,"className":""},{"id":"7353d1a6.00acc","type":"ui_tab","name":"Sandbox","icon":"dashboard","order":7,"disabled":false,"hidden":false}]

The 0.1sec box is checked. Neither injection button will fill out the form. Can confirm the msg.payload is coming through correctly though. Maybe a refresh browser is necessary?

You could try sending a blank tab to ui-control to refresh the page and send the formhold data

[{"id":"241737040156cef1","type":"inject","z":"368e5e5ea9463c23","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":true,"onceDelay":0.1,"topic":"","payload":"{\"tab\":\"\"}","payloadType":"json","x":130,"y":400,"wires":[["4bc957c9.5ab09"]]},{"id":"4bc957c9.5ab09","type":"ui_button","z":"368e5e5ea9463c23","name":"","group":"87daf6bf91ebce67","order":9,"width":"1","height":"1","passthru":true,"label":"","tooltip":"","color":"","bgcolor":"","icon":"mi-refresh","payload":"{\"tab\":\"\"}","payloadType":"json","topic":"topic","topicType":"msg","x":130,"y":360,"wires":[["636dc7f9dcaee2cd"]]},{"id":"636dc7f9dcaee2cd","type":"ui_ui_control","z":"368e5e5ea9463c23","name":"","events":"all","x":310,"y":400,"wires":[["da857f0f.2dc008"]]},{"id":"da857f0f.2dc008","type":"switch","z":"368e5e5ea9463c23","name":"","property":"name","propertyType":"msg","rules":[{"t":"eq","v":"Sandbox","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":490,"y":400,"wires":[["cdb72a70ededfb17","661eecfe6f0e1366"]]},{"id":"cdb72a70ededfb17","type":"debug","z":"368e5e5ea9463c23","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":690,"y":380,"wires":[]},{"id":"661eecfe6f0e1366","type":"change","z":"368e5e5ea9463c23","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"formhold","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":300,"y":280,"wires":[["52ec11d219c28718"]]},{"id":"52ec11d219c28718","type":"ui_form","z":"368e5e5ea9463c23","name":"","label":"IP Address 1750+ test","group":"87daf6bf91ebce67","order":1,"width":"6","height":"2","options":[{"label":"Enter IP Address","value":"IP_1","type":"text","required":false,"rows":null},{"label":"Enter Port","value":"port_1","type":"text","required":false,"rows":null},{"label":"Enter Name","value":"Name_1","type":"text","required":false,"rows":null}],"formValue":{"IP_1":"","port_1":"","Name_1":""},"payload":"","submit":"submit","cancel":"cancel","topic":"","topicType":"str","splitLayout":false,"x":580,"y":280,"wires":[["826c5e5d6dab66e7","685ec4296335c397"]]},{"id":"826c5e5d6dab66e7","type":"debug","z":"368e5e5ea9463c23","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":830,"y":280,"wires":[]},{"id":"685ec4296335c397","type":"change","z":"368e5e5ea9463c23","name":"","rules":[{"t":"set","p":"formhold","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":530,"y":200,"wires":[["52ec11d219c28718"]]},{"id":"87daf6bf91ebce67","type":"ui_group","name":"TESTBOX","tab":"7353d1a6.00acc","order":1,"disp":true,"width":"6","collapse":false},{"id":"7353d1a6.00acc","type":"ui_tab","name":"Sandbox","icon":"dashboard","order":7,"disabled":false,"hidden":false}]

[edit] Added switch so it reacts to Sandbox tab only. Also you can have the one ui control work for other tabs , just add a option in the switch node.

Rather than a delay of 0.1 to resend the data use a ui-control in connect message to trigger sending it to the dashboard when it connects to preset the value

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.