Form ui-form
Adds a form to user interface which helps to collect multiple value from the user on submit button click as an object in msg.payload
.
Properties
Prop | Dynamic | Description |
---|---|---|
Group | Defines which group of the UI Dashboard this widget will render in. | |
Size | Controls the width of the button with respect to the parent group. Maximum value is the width of the group. | |
Label | A label shown before the form rows. | |
Form Elements | A list of the rows presented in the form. Each row has the following properties:
| |
Buttons | The text shown on each of the form's buttons. If "cancel" text is left empty, then no cancel button will be shown. | |
Two Columns | Will render the form as a two-column layout. | |
Reset on Submit | If checked, the form will be reset to an empty state after the form is submitted. | |
Topic | Defines how to compute the topic, included in the `msg` object, when the form is submitted. |
Dynamic Properties
Dynamic properties are those that can be overriden at runtime by sending a particular msg
to the node.
Where appropriate, the underlying values set within Node-RED will be overriden by the values set in the received messages.
Prop | Payload | Structures |
---|---|---|
Class | msg.class | String |
Example
Example of a rendered form in a Dashboard.