Building forms and managing submissions
Last updated
The Forms module builds contact forms, enquiry forms and sign-up forms on your WordPress site. Forms are accessible (they work well with screen readers and keyboards), use no JavaScript on your pages, and stop spam without a CAPTCHA puzzle.
You build and edit forms in WordPress. MaintainHQ lets you see and manage submissions, notification emails and spam settings for every site in one place, and Gus can place a form on a page for you.
Switching Forms on
Open the site page in MaintainHQ and choose Content, then Forms. Press "Install and switch on Forms" (or "Switch on Forms"). The screen then has four tabs: Forms, Submissions, Notifications and Settings.
In WordPress, Forms has its own menu item with All forms, Submissions and Settings.
Building a form in WordPress
- In WordPress, go to Forms and press "Add form". A new form starts with Name, Email and Message fields.
- Under Fields, press "Add field" and choose a type. Use Move up and Move down to reorder.
- For each field, set the label, a Key (used in emails, placeholders and exports), whether it is Required, and the options for that type.
- Set the Button text.
- Under After sending, write a Thank-you message, or choose "Or send visitors to this page" to send them to a thank-you page.
- Optionally write a "Message when closed", shown when you close the form to new submissions.
- Set up Notifications (see below) and save.
| Type | Use it for |
|---|---|
| Text, Email, Phone | Single-line answers. Email and Phone are checked for a sensible format. |
| Paragraph | Longer messages. "Most characters" sets a limit. |
| Drop-down, Radio buttons, Checkbox | Choices. Enter options one per line. A checkbox can be single or a group. |
| Number | Numbers, with Lowest, Highest and Step. |
| Date | Dates. |
| File upload | Attachments. Set the file types (for example pdf, jpg) and the largest file in MB, up to 20. |
| Hidden | A fixed Value sent with every submission, for example where the form sits. |
| Consent | A tick box with your Consent wording, for example agreement to your privacy policy. |
Every field can also have a Placeholder and Help text. Use "Copy" in the forms list to duplicate a form.
Putting a form on a page
There are three ways:
- In the block editor, add the Form block and choose the form.
- Paste the form’s shortcode, for example [mhqst_form id="3"]. In MaintainHQ, the Forms tab has a copy button next to each shortcode.
- In MaintainHQ, press "Ask Gus to add this form to a page". Gus asks where if you have not said, then drafts the change for you to approve.
Gus can place a form on one or more pages, in a block theme template (for example under the content of every page), in a template part such as the footer, or inside an Elementor, Bricks, Divi or WPBakery layout. All the places go into one fix plan. As with every Gus change, nothing changes until you approve it for staging or production, the page is backed up first, and the change is put back automatically if the form does not show properly.
What visitors see
Every answer is checked on the server when the form is sent. If something is wrong, the errors appear at the top of the form with links to each field, and the visitor’s answers are kept so they do not have to start again. Required fields say "(required)" in text, not just with a symbol, and the confirmation is announced to screen readers.
Uploaded files are stored under random names in a folder that cannot be reached from the web, and only admins can download them.
Working with submissions
The Submissions tab shows each submission with when it was Sent (UTC), the Form and a Summary. New ones are marked New, and the tab heading shows how many are new.
- Filter by Form, or Search for a name, email address or words in a message.
- Press View to read a submission in full. From there you can "Mark as new", Delete it, or "Open in WordPress" to download any attached files.
- Tick several and press "Delete ... selected". Deleting also deletes any files sent with them, and cannot be undone.
- Choose a form and press "Export CSV" to download its submissions as a spreadsheet file. The export is safe to open in a spreadsheet program. Very large exports are best done from WordPress.
On the Forms tab, the Open switch closes a form to new submissions without removing it from the page.
Notification and confirmation emails
On the Notifications tab, choose a form, then set:
| Setting | What it does |
|---|---|
| Email each submission | Sends each submission to you or your team. |
| Send to | Addresses, comma separated. Leave empty to use the default from Settings, or the site’s admin email. |
| Subject | You can use {form}, {site} and {field:key}, for example {field:name}. |
| Send the sender a confirmation | Emails the visitor. The form needs an Email field for this. |
| Confirmation subject and message | What the visitor receives. |
| Send these emails with | MaintainHQ Email, or the site’s WordPress mail. |
Notification emails set the reply-to address to the visitor, so you can reply directly.
MaintainHQ Email is the default choice. It is used when the Email tool is on and connected; until then, WordPress mail sends the emails and the setting says so. Choose "The site’s WordPress mail" if a form must always use the site’s own mail settings, for example an SMTP plugin the client relies on. Press "Save notifications".
Spam protection, privacy and settings
Spam protection is built in, with no CAPTCHA and no outside service: a hidden field that only bots fill in, a minimum time to fill in the form, and an hourly limit per visitor. The Settings tab shows how many sends each check caught, and how many emails could not be sent.
| Setting | What it does |
|---|---|
| Send submissions to | The default address for forms with no addresses of their own. |
| Shortest time to fill in a form (seconds) | Faster sends are treated as spam. 0 switches the check off. |
| Sends per visitor per hour | 0 switches the limit off. |
| Delete submissions after (days) | Deletes old submissions automatically. 0 keeps them until you delete them. |
| Store a hashed visitor address with each submission | Keeps a scrambled version of the visitor’s IP address, which cannot be turned back into the address. |
For privacy requests, WordPress’s own Export Personal Data and Erase Personal Data tools (under Tools in wp-admin) find form submissions by email address. Forms also suggests text for your privacy policy.