Forms with retention and erasure
Forms the public site can write and never read back, kept only as long as declared.
In the adminForms

Each form declares its fields, what they are for and how long submissions are kept. The public site may write a submission and cannot read one back; they are read in the admin.
| To | Run |
|---|---|
| List forms, held submissions and retention | quilzo form list |
| Remove what is past retention | quilzo form expire |
| Erase everything matching a value, such as an email | quilzo form erase VALUE |
Declare a form
On the Forms screen, Declare a form, or add a field names the form, its privacy notice, what the answers are for, its lawful basis and how many days it keeps them, then adds one field at a time. A form is kept in the store's forms.json. To show one on a page, choose it under Form on this page in the page's editor (see Pages).
| A field that | Has the kind |
|---|---|
| Takes one line, or several | line, para |
| Takes an email address, shape-checked and never sent to | email |
| Takes a number | number |
| Offers one of a list | choice |
| Is a box to tick | agree |
| Takes a file | file |
Ask a question only when it applies
A field can be asked only when an earlier choice was answered one way, or an earlier box was ticked. In the form builder, fill in Asked only when and is answered; in forms.json, give the field "when": {"field": "topic", "is": "Returns"}, leaving out is for a box.
The server decides what was asked from what arrived, and keeps nothing for a question it did not ask, whatever was sent for it. The form's stylesheet, /form/NAME.css, hides the question until the answer that asks it is given, with no script. A browser that cannot do that shows every question, each saying when it applies.
Take files
A field of kind file takes a CV, a photograph of the damage or a signed letter. Takes, for a file says which: image, document, text, audio or video, and images and documents when it is left empty.
- A file is taken by what its bytes are, never by its name or the type the browser claimed, and checked as the media library checks an upload.
- One file may be at most 10 MB, and one submission's files 20 MB together. The files every form keeps come to at most 1 GiB; a submission that would go past it is refused, and the form says it cannot take any more files just now.
- A CSV is refused when any cell a spreadsheet would run holds a formula, whichever separator the spreadsheet reads it by.
- A file is kept with its submission and deleted with it: when it expires, when it is erased and when the form is purged.
- Staff download it from Forms; it is never shown inside the admin's own pages. Every download is recorded in the audit log as
form.file.read. A file in a field marked sensitive takes whoever may erase it.
Hear about submissions
Staff are told when a form is sent, through notify.staff (see Telling staff). The notice says which form and how many, never who or what they wrote. A submission that arrives through the share sheet of a device that installed the site is recorded in the audit log and alerts staff as the form's own route does.
Spam and spreadsheets
Forms, bookings and the newsletter's sign-up judge a visitor with one bot check: a field only a script fills in, and how long ago the page was opened. A form opened more than a day ago asks to be reloaded and sent again. The shield can turn forms off for a while, every form or one by name (see the shield).
Every CSV Quilzo writes, the form export included, goes through one guard, so a value that begins like a formula is written so a spreadsheet does not run it.
A chatbot can offer a form as an action (see Chatbots), and the form's own checks still apply.