Repository navigation
Choose a confirmation
Written against v0.5.3.
A form should answer a successful submission with a message or a redirect of your choosing, and a different one for some visitors.
With the confirmations switch off (see Configuration), none of this applies and Statamic's own response returns.
- Open the form's settings screen and go to Confirmations.
- Under Default Confirmation, choose a Confirmation Type and fill in the fields it shows (see the table below). Save the form.
- To answer some submissions differently, add one or more Additional Confirmations. Each has a Confirmation Name, its own Confirmation Settings and Conditional Logic.
For each submission the first additional confirmation whose conditions pass is used, in the order listed. When none passes, the default is used. A confirmation with no conditions always passes, so place it last. A form with no confirmation settings at all keeps Statamic's own response.
| Type | Fields | What the visitor gets |
|---|---|---|
| Show Message | Confirmation Message | The message, in place of Statamic's generic success text. |
| Send to External URL | External Confirmation URL, Query String | A redirect to the address. |
| Send to Page Entry | Confirmation Page Entry, Query String | A redirect to the entry's URL. |
| Replace Form With Page Entry Content | Confirmation Page Content, Query String | A redirect to the entry's URL. |
The message is rich text, and Antlers runs over it with the submission available, so {{ submission:name }} and the other merge tags resolve. The quiz and survey tags resolve in it too while quiz scoring is on (see Quiz and survey tags). A Query String is added to the destination after its merge tags resolve, for example source=form&topic={{ submission:department }}.
Note: a redirect is followed only when its address is on the application. An address on another site is refused, and the visitor sees the confirmation message instead, when one is set. The type named Send to External URL therefore redirects only to a URL on your own site.
Note: Open in New Tab, Delay Redirect and Show Message, Confirmation Redirect Delay Time and Confirmation Redirect Message are stored with the form. The add-on does not read them: the redirect happens at once. A template or host that wants a delay reads them from the form.
- Form settings screen: every field the screen adds.
- Conditional logic: how conditions are written and evaluated.
Home | Getting started | Guides | Troubleshooting | Reference | README | Repository
Written against v0.5.3. Edit these pages in docs/wiki/ through a pull request; edits made in the wiki are overwritten by the next publish.
Getting started
Guides
- Send notifications
- Choose what visitors see after submitting
- Close a form on a date
- Score a quiz
- Score a survey
- Save submission data
- Turn a feature off
Troubleshooting
Reference
- Configuration
- Form settings screen
- Restriction states
- Conditional logic
- Merge tags
- Quiz and survey tags
- Fieldtypes
- Extending the add-on
- README
Project