Submit form data
Collect user input in a Form (or group of inputs) and write it to a datasource.
Steps
- Add inputs (Input, Select, DatePicker, etc.) inside a Form widget.
- Create an insert/update query on your datasource (Postgres, REST, Sheets, CSV workflows, etc.).
- Bind query parameters to widget values, for example:
{{ InputName.text }}
{{ SelectStatus.selectedOptionValue }}
- On the Form onSubmit (or a Button onClick), run the query, then reset the form or show a success alert:
{{ insertRow.run().then(() => groove.showAlert("Saved", "success")) }}
- Optionally refresh a Table that lists the same data:
{{ getRows.run() }}.