Skip to content

Formie Submissions Variables

Global Variables

In addition to the variables listed below, Event and People Variables are also available.

When a notification is triggered by a Formie Submission, the submitted form and all its data are available through the submission, form, and success variables.

VariableTypeDescription
submissionSubmissionThe submitted Formie Submission element (also available as object and element).
formFormThe Formie Form the submission belongs to.
successbooltrue if the submission succeeded, false if it did not.

Field values

Any submitted field value can be read by its handle:

twig
"{{ form.title }}" was submitted by {{ submission.name }}.

Spam details

When a submission is flagged as spam, the reason is available on the submission:

VariableTypeDescription
submission.isSpamboolWhether the submission was flagged as spam.
submission.spamReasonstring|nullWhy it was flagged (e.g. "Failed Captcha ...").

Examples

Get a Pushover alert when a form is submitted

twig
New submission on {{ form.title }} from {{ submission.name }} ({{ submission.email }}).

Post new submissions to a Slack channel

twig
New submission on *{{ form.title }}*

- Name: {{ submission.name }}
- Email: {{ submission.email }}
- Message: {{ submission.message }}

Send a text message to the person who submitted the form

twig
Thanks {{ submission.name }}! We got your message and will be in touch soon.

You can specify their phone number via Dynamic Recipients.

twig
{% setRecipients submission.phone %}