The marketing CMS where agents draft and people publish
Menu

Build a form

This guide covers making a contact or sign-up form: its fields and rules, where each submission goes, putting it on a page with the Form block, and reading the submissions.

Before you start: a manager or admin account to build forms (forms.manage); editors and up can read submissions (forms.view_submissions). Email connectors need a mail relay (Site settings → Mail).

Steps

  1. Marketing → Forms → New form. Under Basics, give it a Label ("Volunteer sign-up"), a Key (volunteer; the Form block finds the form by it and it cannot start with a digit), the Submit button label and the Success message shown in place of the form after it is sent. Tick Capture marketing context to store the utm_* parameters, the referrer and the landing page with each submission.
  2. Add the fields. Under Fields, Add field for each: a Key, a Label, a Type (text, email, tel for a phone number, textarea for a longer answer, select for a choice from a list, checkbox, number, hidden or file) and Required. More opens the placeholder, the Help text, the Options (one per line) for a list and Show this field only when…, which shows the field only while another field has a given value. Reorder with the arrows.
  3. Choose where submissions go. Every submission is stored in Spillway. Under Connectors, add Email with the Recipients (comma-separated) to get each one in an inbox, Webhook to post it to another system, or HubSpot (Connect HubSpot to a form).
  4. Optional: Steps splits a long form into pages with a progress indicator; Payment takes a donation or a fee through Stripe (the site's Stripe keys go under Site settings → Integrations).
  5. Create (then Save after later changes). The Embed card says what to do next.
  6. Put it on a page. In the page builder, add a Form block and type the form's key in Form key. The canvas shows the real form; give it a title and an intro if the page needs them, and publish the page.
  7. Read the submissions. Submissions (from the form's header, or the link in the forms list) lists each one with its date, status (Received, Delivered or Failed), the first fields, the page it came from and the UTM source. Click a row for the full data, the attached files and each connector's delivery log; Redeliver runs a failed connector again. Download CSV gives every submission as a spreadsheet.

Check the result

  • Submit the form on the published page: the success message replaces the form, and the submission appears under Submissions as Delivered (or Received without connectors).
  • The recipients of an Email connector get the message.

Notes

  • Spam protection is always on: a hidden honeypot field, a two-second minimum fill time and a limit of 20 submissions per 10 minutes per address. Site settings → Forms adds a CAPTCHA (Cloudflare Turnstile, hCaptcha, Google reCAPTCHA or Friendly Captcha) to every form.
  • The form works without JavaScript; with it, the success message appears in place.
  • Files attached to a file field are kept privately with the submission, never in the media library or at a public address.

Going further

Spillway 0.1.24

Was this page helpful?