Hello!
I am experimenting a bit with the dashboard again. For my usecase the form works very good. But now i have a case where i must use a dropdown too, because there are 3 options for my input.
Is its possible to "integrate" my dropdown to my submit of my form?
[
{
"id": "3b3f68ae8850cfdb",
"type": "ui_form",
"z": "eb26bb87df001a1f",
"name": "",
"label": "",
"group": "fa7c1f04e5714b54",
"order": 3,
"width": 0,
"height": 0,
"options": [
{
"label": "Dosing",
"value": "Dosing",
"type": "switch",
"required": true,
"rows": null
},
{
"label": "Remote",
"value": "Remote",
"type": "switch",
"required": true,
"rows": null
}
],
"formValue": {
"Dosing": false,
"Remote": false
},
"payload": "",
"submit": "submit",
"cancel": "cancel",
"topic": "topic",
"topicType": "msg",
"splitLayout": "",
"className": "",
"x": 410,
"y": 560,
"wires": [
[
"6ba3c02bed054ea5",
"91b254d4cf04878e"
]
]
},
{
"id": "9c50ca1e7588d551",
"type": "ui_dropdown",
"z": "eb26bb87df001a1f",
"name": "",
"label": "Mode",
"tooltip": "",
"place": "Mode",
"group": "fa7c1f04e5714b54",
"order": 4,
"width": 0,
"height": 0,
"passthru": true,
"multiple": false,
"options": [
{
"label": "Manual",
"value": "Manual",
"type": "str"
},
{
"label": "Automatic",
"value": "Automatic",
"type": "str"
},
{
"label": "Semi",
"value": "Semi",
"type": "str"
}
],
"payload": "",
"topic": "topic",
"topicType": "msg",
"className": "",
"x": 410,
"y": 620,
"wires": [
[]
]
},
{
"id": "6ba3c02bed054ea5",
"type": "change",
"z": "eb26bb87df001a1f",
"name": "SaveFormToConcept",
"rules": [
{
"t": "set",
"p": "SaveFormToConcept",
"pt": "flow",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 680,
"y": 420,
"wires": [
[]
]
},
{
"id": "91b254d4cf04878e",
"type": "function",
"z": "eb26bb87df001a1f",
"name": "assign elements_I",
"func": "msg.payload = {\n \"Dosing\": msg.payload.Dosing,\n \"Remote\": msg.payload.Remote,\n}\nreturn msg; \n\n",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 670,
"y": 460,
"wires": [
[
"83af26336b9afe28"
]
]
},
{
"id": "83af26336b9afe28",
"type": "debug",
"z": "eb26bb87df001a1f",
"name": "Send to MQQT",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 1020,
"y": 460,
"wires": []
},
{
"id": "fa7c1f04e5714b54",
"type": "ui_group",
"name": "Pump-settings",
"tab": "a42d8adbe9caeb3d",
"order": 3,
"disp": true,
"width": 14,
"collapse": false,
"className": ""
},
{
"id": "a42d8adbe9caeb3d",
"type": "ui_tab",
"name": "Pumpe_01",
"icon": "dashboard",
"order": 1,
"disabled": false,
"hidden": false
}
]
Thank you