Form
Several fields that go together, sent as one message when someone presses Submit: msg.payload = { recipe: 'R2', size: 800, … }. Fields can be text, number, select, toggle or date, with a label, a default and required; numbers can have a range. Values are checked before sending, with the error under each field, and again on the server: an invalid form is never sent.
Try Start batch with the size empty, or 9000:
What someone types stays in their browser until they submit: other people looking at the dashboard don’t see it. Cancel goes back to the last values the flow sent.
Properties
Section titled “Properties”| Property | Type | Default | Description |
|---|---|---|---|
label |
string | Form |
Title at the top |
icon |
string | Lucide icon before the title | |
fields |
array | The fields, in order (below) | |
submitLabel |
string | Submit |
Text of the submit button |
cancelLabel |
string | Cancel |
Text of the cancel button; empty hides it |
resetOnSubmit |
boolean | false |
Clear the fields (back to their defaults) after sending |
disabled |
boolean | false |
Set with msg.ui to lock the form |
Each field:
| Key | Type | Description |
|---|---|---|
key |
string | Property name in msg.payload (required, unique) |
label |
string | Label above the field (defaults to the key) |
type |
text · number · select · toggle · date |
Kind of field |
required |
boolean | Empty is an error (not for toggles) |
value |
Default value: a number, text, an option’s value, true/false or YYYY-MM-DD |
|
options |
array or string | Select: ['R1', 'R2'], [{ label: 'Low', value: 1, type: 'num' }] or "R1, R2" |
min, max |
number | Number: limits |
placeholder |
string | Hint shown when empty |
The form fills its tile and scrolls if the fields don’t fit; on wide tiles the fields flow into columns. Enter in a text or number field submits.
msg.payload = { recipe: 'R2', size: 800 }; // pre-fill these fields (others keep their value)msg.payload = null; // back to every field's defaultmsg.ui = { fields: [ … ] }; // replace the fieldsmsg.ui = { disabled: true };A pre-fill is stored and shown to every browser that opens the page, like other widgets’ values. No output unless Pass input messages through is on.
Output
Section titled “Output”{ payload: { recipe: 'R2 · Low salt', size: 800, operator: 'Ana', date: '2026-12-01', rinse: true }, topic: 'batch', _client: { id: 'c7f…' }}Every field is in payload, typed: numbers (or null when empty), strings, the option’s value with its type, true/false, and dates as "YYYY-MM-DD" (or null).