Form Follow-Up
Tutorials
Every form in Domma CMS can trigger up to four things after a submission is stored:
- Send an email notification to one or more recipients
- POST to a webhook URL
- Execute a CMS Action (Pro)
- Redirect the visitor to a success page (or show an inline message)
These are configured per-form in the admin. Open any form in Forms and go to the Settings and Actions tabs.
Go to the Actions tab of your form and enable Send email on submit. Enter one or more comma-separated recipient addresses. This uses the SMTP settings configured in Site Settings → Email / SMTP.
Recipients: admin@example.com, team@example.com
Subject Prefix: [Contact Form]<div class="tab-panel"><p>Enable <em>POST to webhook on submit</em> and enter a URL. Domma will POST the following JSON body:</p>
{
"form": "enquiries",
"data": {
"full_name": "Jane Smith",
"email": "jane@example.com",
"message": "Hello!"
}
}
Use this to integrate with Zapier, Make, Slack, or any HTTP endpoint.
Actions are reusable workflow steps defined in Actions. A single action can chain multiple steps: update a field, move an entry to another collection, send an email, call a webhook, or delete an entry.
To wire an Action to a form:
- Create an Action in Actions targeting the same collection as your form.
- Open the form in Forms → Actions tab → CMS Action card.
- Select the Action from the dropdown and save.
The Action runs server-side, after the entry is saved. If it fails (e.g. MongoDB is not configured), the submission is still stored — the action failure is non-fatal and logged as a warning.
After a successful submission the visitor sees one of two things:
- Inline success message — the form is replaced by the text set in Settings → Success Message. Good for simple acknowledgements.
- Page redirect — the visitor is sent to the URL set in Settings → Success Redirect URL. Good for registration flows, checkouts, or when you want a full thank-you page with additional content. Takes priority if both are set.
Example: set Success Redirect URL to /thank-you and create a
thank-you.md page in the CMS with any content you like.
On every submission, the pipeline runs in this fixed order:
- Validate fields + honeypot + rate limit
- Store entry to collection
- Send email (if enabled)
- Call webhook (if enabled)
- Execute CMS Action (if set)
- Return success response → client redirects or shows message
Steps 3–5 are non-fatal: a failure in any of them is logged as a warning but does not prevent the submission from being stored or the success response from being returned.