I have an object with 140 properties. It contains some configuration settings, and I want to let the user easily change them.
I want to generate a form having each of these properties as an element, like this Dashboard ui_form:
But each of these elements needs me to set a name, label, etc., so I tried to automate the process and generated an array of elements as follows:
elements = [
{"label":"Valve field count",
"value":"valve_field_count",
"type":"number",
"required":false,
"rows":null},
{"label":"Valve fertilizer count",
"value":"valve_fertilizer_count",
"type":"number",
"required":false,
"rows":null},
//etc
]
I formatted it this way after seeing the Info on the Form node (in the navigation to the right).
Now that I've set some of the settings for the form, how may I plug it into the form?
Solved with my friend's help: