hello everyone, i want to create a form without using the ui form node because it doesnt have a dropdown menu as an element to choose from, so I want to create a form with text input nodes, dropdown menu nodes and checkboxes. I'm not sure how to make a submit button (or a function node) that takes the values inserted in those fields and makes an object with labels and values as a key/value field. This is where I am so far. Any help is much appreciated!
[
{
"id": "31003a427e9aa358",
"type": "ui_dropdown",
"z": "b9f9fd4c9675bc1a",
"name": "",
"label": "Ram",
"tooltip": "",
"place": "Select option",
"group": "3cd226df1a4e0126",
"order": 6,
"width": 0,
"height": 0,
"passthru": true,
"multiple": false,
"options": [
{
"label": "1",
"value": "2",
"type": "str"
},
{
"label": "2",
"value": "4",
"type": "str"
},
{
"label": "3",
"value": "8",
"type": "str"
},
{
"label": "16",
"value": "16",
"type": "str"
},
{
"label": "32",
"value": 0,
"type": "num"
}
],
"payload": "",
"topic": "topic",
"topicType": "msg",
"className": "",
"x": 450,
"y": 200,
"wires": [
[
"668135a38f68a318"
]
]
},
{
"id": "aa601e30df230ef8",
"type": "ui_text_input",
"z": "b9f9fd4c9675bc1a",
"name": "projet",
"label": "project",
"tooltip": "",
"group": "3cd226df1a4e0126",
"order": 1,
"width": 0,
"height": 0,
"passthru": true,
"mode": "text",
"delay": 300,
"topic": "projet",
"sendOnBlur": true,
"className": "",
"topicType": "str",
"x": 450,
"y": 120,
"wires": [
[]
]
},
{
"id": "60984213cab528f3",
"type": "ui_text_input",
"z": "b9f9fd4c9675bc1a",
"name": "",
"label": "Action. ex: CREATE, DELETE ...",
"tooltip": "",
"group": "3cd226df1a4e0126",
"order": 2,
"width": 0,
"height": 0,
"passthru": true,
"mode": "text",
"delay": 300,
"topic": "topic",
"sendOnBlur": true,
"className": "",
"topicType": "msg",
"x": 530,
"y": 160,
"wires": [
[]
]
},
{
"id": "78d2258df2a4f2e1",
"type": "ui_dropdown",
"z": "b9f9fd4c9675bc1a",
"name": "",
"label": "CPU",
"tooltip": "",
"place": "Select option",
"group": "3cd226df1a4e0126",
"order": 5,
"width": 0,
"height": 0,
"passthru": true,
"multiple": true,
"options": [
{
"label": "1",
"value": "1",
"type": "str"
},
{
"label": "2",
"value": "2",
"type": "str"
},
{
"label": "3",
"value": "3",
"type": "str"
}
],
"payload": "",
"topic": "topic",
"topicType": "msg",
"className": "",
"x": 450,
"y": 240,
"wires": [
[
"668135a38f68a318"
]
]
},
{
"id": "bcb015ea1ca914e5",
"type": "ui_dropdown",
"z": "b9f9fd4c9675bc1a",
"name": "",
"label": "Date",
"tooltip": "",
"place": "Select option",
"group": "3cd226df1a4e0126",
"order": 7,
"width": 0,
"height": 0,
"passthru": true,
"multiple": false,
"options": [
{
"label": "12/2021",
"value": "1",
"type": "str"
},
{
"label": "08/2022",
"value": "2",
"type": "str"
},
{
"label": "19/2019",
"value": "3",
"type": "str"
}
],
"payload": "",
"topic": "topic",
"topicType": "msg",
"className": "",
"x": 450,
"y": 280,
"wires": [
[
"668135a38f68a318"
]
]
},
{
"id": "67646bf263bfe3a8",
"type": "ui_button",
"z": "b9f9fd4c9675bc1a",
"name": "Submit",
"group": "3cd226df1a4e0126",
"order": 9,
"width": 0,
"height": 0,
"passthru": true,
"label": "button",
"tooltip": "",
"color": "",
"bgcolor": "",
"className": "",
"icon": "playlist_add",
"payload": "",
"payloadType": "str",
"topic": "topic",
"topicType": "msg",
"x": 260,
"y": 240,
"wires": [
[
"31003a427e9aa358",
"78d2258df2a4f2e1",
"bcb015ea1ca914e5"
]
]
},
{
"id": "ef9c9bf6507362c7",
"type": "debug",
"z": "b9f9fd4c9675bc1a",
"name": "debug 12",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 860,
"y": 300,
"wires": []
},
{
"id": "c5007d170aa2fdd9",
"type": "ui_dropdown",
"z": "b9f9fd4c9675bc1a",
"name": "",
"label": "Image",
"tooltip": "",
"place": "Select option",
"group": "3cd226df1a4e0126",
"order": 3,
"width": 0,
"height": 0,
"passthru": true,
"multiple": false,
"options": [
{
"label": "zos-build-618168",
"value": "zos-build-618168",
"type": "str"
},
{
"label": "zos-build-8463641",
"value": "zos-build-8463641",
"type": "str"
}
],
"payload": "",
"topic": "topic",
"topicType": "msg",
"className": "",
"x": 450,
"y": 320,
"wires": [
[]
]
},
{
"id": "b9f92909c289f752",
"type": "ui_dropdown",
"z": "b9f9fd4c9675bc1a",
"name": "",
"label": "Instance",
"tooltip": "",
"place": "Select option",
"group": "3cd226df1a4e0126",
"order": 4,
"width": 0,
"height": 0,
"passthru": true,
"multiple": false,
"options": [
{
"label": "01::zos-build-1::Exited",
"value": "01::zos-build-1::Exited",
"type": "str"
},
{
"label": "02::zos-build-2::Exited",
"value": "02::zos-build-2::Exited",
"type": "str"
},
{
"label": "0::zos-build-3::Running",
"value": "0::zos-build-3::Running",
"type": "str"
}
],
"payload": "",
"topic": "topic",
"topicType": "msg",
"className": "",
"x": 460,
"y": 360,
"wires": [
[]
]
},
{
"id": "09b8737c4a34f121",
"type": "ui_dropdown",
"z": "b9f9fd4c9675bc1a",
"name": "",
"label": "Pick",
"tooltip": "",
"place": "Select option",
"group": "3cd226df1a4e0126",
"order": 8,
"width": 0,
"height": 0,
"passthru": true,
"multiple": true,
"options": [
{
"label": "DB2",
"value": "DB2",
"type": "str"
},
{
"label": "CICS",
"value": "CICS",
"type": "str"
},
{
"label": "MQ",
"value": "MQ",
"type": "str"
}
],
"payload": "",
"topic": "topic",
"topicType": "msg",
"className": "",
"x": 450,
"y": 400,
"wires": [
[]
]
},
{
"id": "668135a38f68a318",
"type": "join",
"z": "b9f9fd4c9675bc1a",
"name": "",
"mode": "custom",
"build": "array",
"property": "payload",
"propertyType": "msg",
"key": "topic",
"joiner": "\\n",
"joinerType": "str",
"accumulate": false,
"timeout": "",
"count": "3",
"reduceRight": false,
"reduceExp": "",
"reduceInit": "",
"reduceInitType": "",
"reduceFixup": "",
"x": 710,
"y": 220,
"wires": [
[
"ef9c9bf6507362c7"
]
]
},
{
"id": "3cd226df1a4e0126",
"type": "ui_group",
"name": "Instances ",
"tab": "7c447e96.4b96a",
"order": 2,
"disp": true,
"width": "6",
"collapse": false,
"className": ""
},
{
"id": "7c447e96.4b96a",
"type": "ui_tab",
"name": "Instances",
"icon": "description",
"order": 2,
"disabled": false,
"hidden": false
}
]