Skip to content

Form settings reference

The settings are one JSON object, the config of a form. Every part is optional.

Checked on the server. Fields you do not list are still stored.

"fields": { "email": { "required": true, "type": "email" }, "age": { "type": "number" }, "message": { "maxLength": 5000 } }
Setting Meaning
required Must not be empty.
type text (default), email or number.
maxLength Maximum number of characters.
Setting Meaning
honeypot Name of a hidden field. If filled, the submission is silently dropped.
turnstile true requires a valid Turnstile answer. Needs a Turnstile secret: the form’s turnstileConnection, else the site’s default Turnstile connection, else TURNSTILE_SECRET_KEY. If the check cannot be done, the submission is refused.
turnstileConnection Id of a Turnstile connection for this form. Choose it in the admin screen under Turnstile secret. Empty means the site default.
rateLimit { "max": 5, "windowSeconds": 600 }. Default is 10 per 10 minutes per visitor.
emailCheck Paid module, see Email check.

Run after the submission is saved. A failing action never loses the submission. Failed mails and webhooks are retried automatically (after 1 minute, 10 minutes and 1 hour, 4 attempts in total, permanent errors excluded), and you can replay them yourself.

A mail action uses the first of these that exists: the action’s connection, the site’s default mail account, the global key of its provider.

Setting Meaning
id Unique name inside the form.
name, description Optional, only for you. The name (up to 80 characters) is shown in the admin screen and in the delivery log. The description can have up to 500 characters.
type email
connection Id of a mail account (see Connections). Empty means the mail account chosen for the site. Choose it in the admin screen under Mail account.
provider tosend, postmark, resend or brevo. Only used when neither the action nor the site has a mail account: it picks which global key to use. An SMTP account is chosen through connection.
from, fromName Sender. The address must be verified with the provider. Optional if the mail account has a default sender.
to List of fixed recipients.
toField Field holding the recipient. Only for the visitor confirmation (see the rules in Add your first form).
replyToField Field holding the address that replies should go to.
subject Required.
text, html Message body.
dailyCap Maximum sends per day for a toField action. Default 100.
when Condition, see below.
{ "id": "crm", "type": "webhook", "url": "https://example.com/hook", "when": { "field": "plan", "op": "eq", "value": "pro" } }

Sends the submission as JSON with a POST. The address must be https. The JSON is always the same: submissionId, form, site, fields (everything that was submitted) and createdAt. A webhook has no template.

Placeholder Value
{{fieldname}} What the visitor typed in that field
{{_all}} All fields as a list
{{_form}} Form name
{{_site}} Client website name
{{_id}} Submission id

In HTML mails every value is escaped. In the admin screen you do not type these by hand: click the button for a field under Insert a field.

Example for a notification mail:

{ "id": "office", "type": "email", "name": "Mail to the office", "provider": "tosend",
"from": "[email protected]", "to": ["[email protected]"], "replyToField": "email",
"subject": "New message from {{name}} via {{_form}}",
"text": "{{name}} wrote on {{_site}}:\n\n{{message}}\n\nSubmission {{_id}}" }

A field called _all, _form, _site or _id cannot be used as a placeholder, because Submitry fills those names itself.

Run an action only if a condition is true.

"when": { "all": [
{ "field": "topic", "op": "eq", "value": "support" },
{ "not": { "field": "email", "op": "contains", "value": "@example.com" } }
] }

Operators: eq, neq, contains, in (value is a list), empty, notEmpty, gt, lt. Combine with all, any and not.

To send an action only when the topic is “sales”:

"when": { "all": [ { "field": "topic", "op": "eq", "value": "sales" } ] }

The admin screen has a simple builder for this (see The admin screen) and an Edit as JSON button for the full form.

Setting Meaning
successMessage Shown after success.
errorMessage Shown for general errors.
emailRejectedMessage Shown when the email check rejects an address.
successRedirect, errorRedirect Address on one of your site’s hostnames.