I have a forms entry UI on my dashboard. I can enter values into it. Great! But is there a way to make my entry stay after I hit the submit button? I can enter values into it. It outputs and does its thing, but the value disappears.
[
{
"id": "b3b62da05decf94d",
"type": "tab",
"label": "Flow 2",
"disabled": false,
"info": "",
"env": []
},
{
"id": "a311d9f438ce0a32",
"type": "ui_form",
"z": "b3b62da05decf94d",
"name": "",
"label": "Int Number",
"group": "88145eb0.23895",
"order": 13,
"width": 0,
"height": 0,
"options": [
{
"label": "wut is this",
"value": "value",
"type": "number",
"required": true,
"rows": null
}
],
"formValue": {
"value": ""
},
"payload": "",
"submit": "submit",
"cancel": "cancel",
"topic": "topic",
"topicType": "msg",
"splitLayout": "",
"className": "",
"x": 310,
"y": 200,
"wires": [
[
"67208e39cf9f055f"
]
]
},
{
"id": "d44340b8689c7a1f",
"type": "modbus-response",
"z": "b3b62da05decf94d",
"name": "",
"registerShowMax": 20,
"x": 1050,
"y": 280,
"wires": []
},
{
"id": "423984e8b3c26593",
"type": "modbus-flex-write",
"z": "b3b62da05decf94d",
"name": "",
"showStatusActivities": false,
"showErrors": false,
"showWarnings": true,
"server": "bf81420f.323c4",
"emptyMsgOnFail": false,
"keepMsgProperties": false,
"delayOnStart": false,
"startDelayTime": "",
"x": 830,
"y": 280,
"wires": [
[
"d44340b8689c7a1f"
],
[]
]
},
{
"id": "67208e39cf9f055f",
"type": "function",
"z": "b3b62da05decf94d",
"name": "function 4",
"func": "var value = msg.payload.value\nvar buf = Buffer.alloc(4);\nbuf.writeFloatBE(value);\nvar values = [(buf[2]*256) + buf[3], (buf[0]*256) + buf[1] ]\n\nmsg.payload = \n{ value: values, \n'fc': 16, \n'unitid': 1, \n'address': 28688 , \n'quantity': 2 } \n\nreturn msg",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 600,
"y": 200,
"wires": [
[
"423984e8b3c26593",
"8cc33af046999468"
]
]
},
{
"id": "8cc33af046999468",
"type": "debug",
"z": "b3b62da05decf94d",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 950,
"y": 140,
"wires": []
},
{
"id": "88145eb0.23895",
"type": "ui_group",
"name": "PLC_Read",
"tab": "a9e24f558660ab0d",
"order": 1,
"disp": true,
"width": "8",
"collapse": false,
"className": ""
},
{
"id": "bf81420f.323c4",
"type": "modbus-client",
"name": "PLC",
"clienttype": "tcp",
"bufferCommands": true,
"stateLogEnabled": false,
"queueLogEnabled": false,
"failureLogEnabled": false,
"tcpHost": "192.168.0.10",
"tcpPort": "502",
"tcpType": "DEFAULT",
"serialPort": "/dev/ttyUSB",
"serialType": "RTU-BUFFERD",
"serialBaudrate": "9600",
"serialDatabits": "8",
"serialStopbits": "1",
"serialParity": "none",
"serialConnectionDelay": "100",
"serialAsciiResponseStartDelimiter": "",
"unit_id": 1,
"commandDelay": 1,
"clientTimeout": 1000,
"reconnectOnTimeout": true,
"reconnectTimeout": 2000,
"parallelUnitIdsAllowed": true,
"showErrors": false,
"showWarnings": true,
"showLogs": true
},
{
"id": "a9e24f558660ab0d",
"type": "ui_tab",
"name": "MAIN",
"icon": "dashboard",
"order": 2,
"disabled": false,
"hidden": false
}
]