Domma CMS User Manual

Form Follow-Up

Updated by Darryl Waterhouse on 23 November 2026 6 min read

Every form in Domma CMS stores each submission as an entry in a collection first. After that it can do up to four more things:

  1. Send an email notification to one or more recipients
  2. Send the submission to a webhook URL
  3. Run a CMS Action (needs MongoDB)
  4. Show an inline success message or redirect the visitor to a success page

These are set per form. Open any form in Data > Forms: the success message and redirect are on the Settings tab; email, telling people, webhook, CMS Action and spam protection are on the Actions tab.


1. Email notification

On the Actions tab, in the Email Action card, tick Send email on submit and enter one or more comma-separated recipient addresses. The email goes through the SMTP settings in System > Site Settings > Email; without them nothing is delivered.

Recipients:       admin@example.com, team@example.com
Subject Prefix:   [Contact Form]

The subject reads <prefix> New submission. With no prefix, the form's title in square brackets is used.

Tell people in the admin

In the Tell People card, tick Tell people when the form is sent. Each saved submission then reaches the people you tick, inside the admin: a notification (the bell) and a message in Messages, from the site, with the answers. Untick either one to send only the other. Tick nobody and every admin is told. The messages arrive in a conversation called Forms, which cannot be replied to. No mail server is needed, and nothing reaches the person who filled in the form.

2. Webhook

In the Webhook Action card, tick POST to webhook on submit, enter a URL and choose POST or PUT. Domma sends this JSON body:

{
  "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. The URL is not kept in the editor's draft, in case it carries a secret token.

3. CMS Action (needs MongoDB)

Actions are reusable workflow steps defined in Data > Actions. A single action can chain several steps: update a field, move the entry to another collection, create an entry in another collection, send an email, call a webhook, raise a notification, or delete the entry. Actions are stored in MongoDB, so they need a MongoDB connection.

To wire an Action to a form:

  1. Create an Action in Data > Actions targeting the collection your form stores into.
  2. Open the form in Forms > Actions tab > CMS Action card.
  3. Pick it under Action on Submit and save.

The Action runs on the server after the entry is saved, as the signed-in visitor if there is one (so {{user.id}} and {{user.email}} work in its steps). If it fails - for example because MongoDB is not connected - the submission is still stored.

A field's triggers (Fields tab) can also run an action, notify the admins or redirect after submit, only when the answers meet the trigger's condition.

A trigger's messages can use the visitor's answers: a banner reading Hello {{name}} greets them by name as they type. Use Insert field beside the message box to pick a field. Passwords, files and images are never repeated back.

4. Success message vs. redirect

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 (default: "Thank you for your submission."). Good for simple acknowledgements.
  • Page redirect - the visitor is sent to the URL set in Settings > Success Redirect URL. Good for registration flows or a full thank-you page. Takes priority if both are set, and a trigger's "Redirect after submit" takes priority over it. {{entryId}} in the URL is replaced with the new entry's id.

Example: set Success Redirect URL to /thank-you and create a thank-you page in Pages with any content you like.

Execution order

On every submission, the pipeline runs in this fixed order:

  1. Spam checks (honeypot and a too-fast submission are accepted silently and not stored)
  2. Triggers: a "Block submission" trigger refuses it; an "End the form here" trigger decides what is kept
  3. Field validation (required fields, conditional logic), then the per-minute rate limit
  4. Store the entry in the collection - if this fails, the visitor is told and nothing else runs
  5. Send the email (if enabled)
  6. Call the webhook (if enabled)
  7. Run the CMS Action (if set)
  8. Run trigger events: run an action, notify the admins, redirect
  9. Return success - the browser redirects or shows the message

Steps 5-8 cannot lose the submission: a failure is logged and raises a warning in Notifications ("Form ...: webhook failed"), but the entry is already stored and the visitor still sees success. An "End the form here" trigger set not to record stores nothing, so no email, webhook or action runs.

Animating fields that show and hide

A field can appear or disappear according to another answer. Open the form, click the field's ⚡ (logic) button and use the Visibility section. Pick a Transition for how the field comes and goes:

  • None - switches instantly
  • Fade, Slide (open and close), Scale, Blur
  • Slide up, Slide down, Slide in from right, Slide in from left
  • Zoom, Bubble pop, Bounce, Drop in, Elastic
  • Flip, Rotate, Swing, Unfold

Speed sets how long it takes; Default uses each effect's own timing. Click Preview to play it on a sample. Visitors who ask for less motion - on their device, or with your site's Reduce motion switch - see the field switch straight away.

The whole form can make an entrance too: on the Settings tab, pick an Entrance animation (the same list) and a Speed. It plays once, as the visitor scrolls to the form, and never for visitors who asked for less motion.

File uploads

A File field is a drop area: visitors drop a file on it, browse for one or paste it, and pictures show a preview. A file of the wrong type or size is refused as soon as it is added, with the reason. Multi-step forms keep the file when the visitor goes back a step.

  • Several files lets one field take more than one file; Most files sets how many (5 unless you change it, up to 20). Every file appears in the submission, the collection entry, the email notification and the CSV export.
  • The page adds up a submission's files and warns before they pass the server's limit (uploads.maxSubmissionBytes, at least 50 MB by default), so a visitor is not refused at the end of a long form.
  • Forms accept pictures (not SVG), audio, video, PDFs, Office and OpenDocument files, text and CSV, and archives. Web pages, SVG files and scripts are always refused. Files are only saved once the submission has passed its spam and validation checks.
  • Files visitors send are private. They are not in Media and have no public address: they open from the submission (pictures show there) for someone signed in who can read the form's submissions. The email notification links to them; the link asks you to sign in first. Files are never attached to the email. Deleting a submission deletes its files.
  • Files sent before this change were in Media. They are moved to the private store when the site first starts on this version - or copied, and left in Media too, if a page or other content links to one.

Copying a form to another site

In Data > Forms, choose Export JSON from a form's menu. On the other site, use Import in the banner. The imported form gets its own new, private submissions collection; existing forms and collections are never changed, and a form whose address is already taken gets a new one. Surveys and Campaigns Pro import and export their definitions the same way, without responses or recipients.

Every setting in the form editor has a (?) beside it. Click it for an explanation.


Back to all tutorials