Skip to content

FormModel

FormModel = object

Defined in: packages/schema/src/model.ts:1228

A public form (.form(...)): anyone, signed in or not, opens it at /-/forms/<name> and creates a record with its fields, through the anonymous role’s create, behind a rate limit and a bot check. See Public forms.

fields: string[]

Defined in: packages/schema/src/model.ts:1234

The fields a visitor fills in, in order.


name: string

Defined in: packages/schema/src/model.ts:1230

Its address in the app, /-/forms/<name>; unique across the app.


perMinute: number

Defined in: packages/schema/src/model.ts:1238

How many submissions one client may send per minute.


thanks: string

Defined in: packages/schema/src/model.ts:1236

What the page shows once the record is created.


optional title?: string

Defined in: packages/schema/src/model.ts:1232

The page’s heading; the view’s singular name when omitted.