Building forms
Forms let visitors send you messages, orders, requests and feedback. Every form has two parts, both made in the admin: its settings, such as who is notified and the page shown after sending, and its fields, the questions it asks, made with the form builder. You then put the form on a page, and its submissions arrive under Form Submissions.
This page walks through three examples: a contact form with a dropdown, an order form whose questions depend on earlier answers, and a feedback form with star ratings.
Creating a form
Click CMS, then Forms, and fill out Create new form:
- Name
- A short name, such as
contact, in lowercase letters, numbers,-,_and~. The page editor lists forms by this name. - Notify Address and Notifications
- The email address that hears about new submissions, and how: Send each submission immediately, a daily digest at the hour you give (in UTC), or both. Leave the address blank to only read submissions in the admin.
- Spam Level
- accept stores and notifies for every submission; balanced quarantines obvious junk and notifies for everything else; strict quarantines anything doubtful. Quarantined submissions are kept as held as spam, where you can release them.
- Anti-Robot
- Every form has a hidden trap that catches simple robots. checkbox and checkbox_pair add one or two boxes that a person must answer, for more protection. Use them only if spam gets through, since they ask a little more of visitors.
- Keep Submissions
- How many days to keep submissions; 0 or blank keeps them forever.
- Response Title, Header, Footer, CSS and JS
- The page visitors see after sending: its title, and the same header, footer and styles as your other pages. Write its text afterward; see The thank-you page.
- Closed Message
- Shown in place of the form while it is disabled, and to anyone who sends it then.
Click Create. In the list, hover over a form for its icons: Edit (the settings), Disable or Enable, and Delete beside its name; Edit fields and the fields' history in the Fields column; and in the Response column, the thank-you page's contents and history, the form's Submissions and its Metrics.
The form builder
Hover over the form and click Edit fields in its Fields column. The builder has three columns:
- Add, on the left: a button for each kind of field. Click one to add it at the end of the form.
- Fields, in the middle: the form's fields in order. Click one to select it; use its arrows to move it up or down and the trash can to remove it.
- Settings, on the right: the selected field's settings.
Every field has a Label (the question), optional Help text shown with it, Required, and a Width: two Half fields in a row sit side by side, and Full takes the whole line. The kinds of field:
| Field | For | Its own settings |
|---|---|---|
| Text | A short answer, such as a name. | Length limits, a placeholder, and a format: letters, letters and digits, digits, or a postal code for the United States, Canada or the United Kingdom. |
| Long text | A message. | Length limits, the number of rows, and a placeholder. |
| An email address, checked for the right form. | A placeholder. | |
| Phone | A phone number. | The fewest and most digits, and a placeholder. |
| Website | A web address. | None. |
| Dropdown | One choice from a list. | The options, and an empty first option such as "Choose one". |
| Radio | One choice, with every option visible. | The options, laid out vertically or horizontally. |
| Checkbox list | Any number of choices. | The options, the fewest and most to tick, and the layout. |
| Checkbox | A single yes or no, such as agreeing to terms. | None. |
| Number | A number or a rating. | Minimum, maximum, step and decimals; a unit; Include in metrics; and how it looks: a Spinbox, a Scale, or Stars. |
| Date | A date. | The earliest and latest dates, or no past or no future dates. |
| Section | A titled group of fields, drawn as a box. | Its title. Fields added after a section go inside it; Move out of the section brings one back out. |
| Text block | A sentence or two of explanation between fields. | Its text. |
Every field also has Visible when, for fields that appear only after a certain answer; see the second example. The Source button shows the form as code, for people and AI agents who prefer to edit it that way.
Click Save below the builder; the Status line says Saved. Preview shows the form as visitors will see it. When a field is first saved, it gets a permanent Key based on its label, shown at the top of its settings. Answers are stored under that key, so you can reword a label later without losing anything.
Example: a contact form
A simple contact form asks for a name, a phone number, an email address and what the visitor wants, with a dropdown for the topic. Create a form named contact, open Edit fields, and add:
- Text: label Your name, required, width Half.
- Phone: label Phone number, not required, width Half.
- Email: label Email address, required, width Half.
- Dropdown: label What is it about?, required, width Half; see below.
- Long text: label How can we help?, required, placeholder Tell us what you need.
Adding a dropdown
- Click Dropdown in the Add column.
- Give it a label, such as What is it about?
- Under Options, change First option to your first choice, such as A question. Click Add option for each further choice: An order, Catering, Something else. The arrows beside each option reorder it, and the trash can removes it.
- Under Empty option, type Choose one. It is shown until the visitor picks something, so nobody sends the first option by accident.
Save, then click Preview:
Example: questions that depend on earlier answers
An order form can ask different questions depending on what is being ordered: an event date and guest count for catering, or a size and description for a custom cake. Each of those fields uses Visible when, which has three parts: a field above it, a test, and a value. The tests are is, is not and is one of for a choice, and is checked or is not checked for a checkbox. With is one of, tick each option that should show the field. A field can depend on one you have just added, before saving.
Create a form named order-request and add:
- Text Your name and Email Email address, both required and Half.
- Radio What would you like?, required, with the options A pickup order, Catering for an event and A custom cake.
- Date Date of the event, required, Half, with No past dates. Under Visible when, choose What would you like?, is, Catering for an event.
- Number Number of guests, required, Half, minimum 10, maximum 500, visible when the same.
- Dropdown Cake size and Long text Describe the cake, both required, visible when What would you like? is A custom cake.
- Checkbox Please deliver to the event, visible when catering is chosen.
- Section Delivery address, visible when Please deliver to the event is checked, with the Text fields Street address, City and ZIP code inside it. A condition on a section shows or hides everything in it.
- Long text Anything else we should know?, moved out of the section, with no condition.
A visitor sees only the questions that apply: after choosing Catering for an event, the date, the guest count and the delivery checkbox appear, and ticking the checkbox reveals the delivery address. A hidden field is never required, so nobody is asked about a cake when ordering catering.
The preview shows every field at once, each marked with the condition that shows it, so you can check them all:
Example: a feedback form with ratings
A feedback form asks visitors to rate you on several points, and the form's metrics then add up the ratings for you. Create a form named feedback and add:
- Text block: Tell us how we did. It takes about a minute.
- A Number field for each thing to rate, such as Quality of the food, Friendliness of our staff, Speed of service and Value for money. For each: required, width Half, Minimum 1, Maximum 5, Display Stars, and Include in metrics checked.
- Radio Would you recommend us to a friend?, with Yes, Maybe and No, and Layout Horizontal.
- Long text Anything else you would like to tell us?, not required.
- Email Your email, if you would like a reply, not required.
To make the feedback page, create a page named feedback and place the form on it. Form submissions and metrics shows how to read the results.
The thank-you page
After sending, a visitor sees the form's response page: its Response Title and the text you write for it, followed by a reference number such as 3-6, which they can quote if they get in touch. To write the text, hover over the form and click the document icon in its Response column; it opens in the same editor as a page. Say plainly that the message arrived, and what happens next.
Putting a form on a page
In the page editor, click where the form should go, then click Place a form here on the toolbar, or choose Insert › Form, and pick the form by name. See Adding a form. Publish the page, and the form is live. How it looks comes from the site's CSS; see Styling forms.
Changing a form later
- Open Edit fields, make the change, and save. Pages that show the form are updated when you publish.
- Rewording a label is safe: answers are stored under the field's key, which never changes.
- The history icon beside Edit fields lists every saved version of the fields.
- To stop accepting submissions for a while, click Disable; visitors see the closed message instead of the form.