Form
Overview
Collects values from the inputs placed inside it and, when submitted, saves them as a new record or an update to an existing one. It validates every field first, shows errors in place and tells you when the save succeeded or failed.
Collects input values and runs actions on submit (e.g. create a record).
When to use
- A quote request on your public website that creates a Leads record
- A “New job” screen for staff that creates a Jobs record and then opens it
- An “Edit customer” page that loads one customer, pre-fills the fields and saves changes
- A feedback form that emails you a copy and shows a thank-you message
- A multi-step intake where each step is a form that updates the same record
When not to use
- To let staff fix many records quickly: use a Data Grid instead
- To sign users in or up: use the Login Form, which talks to authentication, not to an entity
- For a single on/off switch that should save immediately: a Toggle with an Update Record action on Change is simpler
Quick start
- Add a Form and, in Properties → Data, choose the entity it saves to (for example Customers)
- Drag inputs inside the form and set each input's Field key to the matching entity field key (name, email, phone…)
- Add a Button inside the form and turn on “Submits the surrounding form”
- Set Mode to “Create a new record” (or “Edit an existing record” and bind the form's data to the record from the page parameter)
- Optionally add actions on Success, such as Navigate to a details page or Show Toast
- Open Preview, submit once and check the record in the Data tab
Layout rules
- Can contain any component.
- Can be placed in any container (page, section, card, row, column, grid…).
Properties
The entity (table) that receives the submitted values. Each input is matched to a field by its Field key. Leave empty when the form only runs your own On Submit actions.
Without an entity and without On Submit actions, submitting shows “This form isn't connected to an entity yet”.
Create adds a new record on every submit. Update loads the record from the form's data binding (usually filtered by a page parameter), pre-fills the inputs and saves changes to that same record.
Options: create — Create a new record, update — Edit an existing record
Default: create
Text of the form's own submit button, shown when the form has no Button set to “Submits the surrounding form” (if it has one, that button's own text is used). Use an action verb that says what happens: “Request a quote”, “Save changes”.
Default: Submit
Toast shown after the record is saved when the form saves directly to an entity. Not shown when you handle the submit with your own actions.
Default: Saved
Empties the inputs after a successful save so the next entry can start immediately. Ignored in Update mode, where the saved values stay visible.
Default: true
Data binding
In Create mode no data binding is needed. In Update mode bind Data to a query on the same entity limited to one record, typically “ID equals Page parameter id”; the first record found is loaded into the inputs and updated on submit. Inside the form, inputs expose their values to bindings as Form field → <key>, and actions on the form can use Form → <key>.
Properties that can use dynamic data: data.
Events
- On submit
- Runs instead of the built-in save when it has actions. Use Create Record / Update Record with “Use form values” to save, then anything else (Send Email, Navigate). If any action fails, the form shows the error and On Error runs. Validation always happens before this event.
- On success
- Runs after a successful save (built-in or via On Submit). The saved record is available as Event → record when the form saved directly. Typical: Navigate to the details page with id = Event → record.id, Show Toast, Reset Form.
- On error
- Runs when the save was rejected (permission denied, server validation, network). Event → message holds the reason. Field-level errors from the server are shown under the matching inputs automatically.
Actions
Open the Actions tab in the inspector, pick an event and add actions such as Go to page, Create record or Show message. Actions run in order; data-changing actions run on the server with the signed-in user's permissions.
Other components can read this component's values, submitting, submitted from the Data Picker → Component state.
Responsive behavior
Uses 12 of 12 columns by default. In the Responsive tab you can change visibility, span, dimensions, padding, margin, font, order, alignment, direction separately for tablet and mobile.
Permissions
The server checks that the current role may create (or update) records of the entity and that written values stay inside the role's record-level rule (for example a customer can only create jobs linked to themselves). Fields hidden or read-only for the role are rejected if submitted. Hiding the form in the UI does not protect the entity.
Accessibility
- On a failed submit, focus moves to the first invalid input and its error is announced
- Every input needs a Label; placeholders alone are not read reliably by screen readers
Mobile behavior
- Inputs span the full width on phones; group related fields in Containers rather than relying on columns
Examples
Quote request on the public site — Visitors create a Leads record; you get an email and they see a thank-you page.
Saves to entity: Leads Mode: Create a new record Inputs: Name (name), Email (email), Phone (phone), Message (message), Hidden field source = "website" Button: Request a quote — Submits the surrounding form On Success: Send Email → to you · Navigate → Thank you page
Edit a customer from a details page
Page route: /customers/:id Data: Customers where ID equals Page parameter id (limit 1) Mode: Edit an existing record Inputs: name, email, phone, status (Dropdown) On Success: Show Toast “Customer updated” · Go back
Common patterns
- Hidden field with Default value bound to Current user → id to record who submitted
- Hidden field bound to a Page parameter to link the new record to its parent (e.g. customer_id)
- Dropdown loading its options from a related entity to create a relation
- Workflow trigger “Form submitted” for notifications and follow-ups instead of long action chains
Limitations
- One form saves to one entity; to write to two entities use On Submit with two Create Record actions
- File uploads inside a form upload immediately when chosen, not on submit
- Submitting does nothing on the editor canvas; test in Preview
Troubleshooting
Why: Inputs have no Field key, or keys do not match the entity's field keys
Fix: Open each input and set Field key to the exact entity field key (lowercase, underscores)
Why: No entity chosen and no On Submit actions
Fix: Pick an entity in Properties → Data, or add a Create Record action to On Submit
Why: The data binding's filter does not match a record the current user may read
Fix: Check the page parameter name in the filter and the role's permissions on the entity