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.
| Variable | Type | Description |
|---|---|---|
submission | Submission | The submitted Formie Submission element (also available as object and element). |
form | Form | The Formie Form the submission belongs to. |
success | bool | true 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:
| Variable | Type | Description |
|---|---|---|
submission.isSpam | bool | Whether the submission was flagged as spam. |
submission.spamReason | string|null | Why 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 %}