A simple but accessible Form with inputs and buttons. Docs.
Set the input data to an Array of Objects. Each array entry will be a new form input or button. An Object of Objects can also be used where the outer object is key'd by the ID of the entry.
Currently supported properties in the inner objects are:
type=
One of the input types listed below,
id=
Unique HTML identifier,
label=
Label text of the input field or button,
required=
true/false whether a value is required,
value=
Optional starting value.
Other properties can be provided. These only work with the appropriate input types and are otherwise ignored
Available input types are: button, checkbox, color, date, detetime-local, email, hidden, month, number, password, radio, range, tel, text, time, url, week. See this explanation of the types and properties.
Some additional types will be made available in the future: select, combo, file, image, textarea. Auto-complete will also be added eventually.
If a button is included, pressing the button will automatically send a message from the client back to Node-RED
All of the form data will be included in that message in msg._ui.form
.