Forms
Build and submit dynamic forms per location
Danvas forms provide a flexible system for building custom data collection workflows per location. Forms are defined with a JSON schema and rendered dynamically at runtime.
Overview
Admins build forms using a visual form builder. Each form has a name, description, and array of field definitions. Staff then fill out forms on any device — submissions trigger Slack notifications and update compliance tracking.
Field Types
Danvas supports 8 field types:
| Type | Description | Validation |
|---|---|---|
text | Single-line text input | Max 500 chars |
textarea | Multi-line text input | Max 5000 chars |
number | Numeric input | Range validation available |
email | Email address | Email format check |
select | Single dropdown | Options defined in form |
multiselect | Multiple choice checkboxes | At least 1 required |
date | Date picker | ISO date format |
checkbox | Boolean toggle | Returns true/false |
Form Schema
Forms are stored as JSONB with this structure: