Signup forms · 3 fields
Mailchimp signup form template
A signup form you style yourself, for people whose list lives in Mailchimp. It collects a first name, an email and a required consent tick; the signups arrive in Formward, and you pass them on to your audience.
Mailchimp signup
Live demo: try the fields. Submitting sends nothing.
02 / Field guide
Why these fields
First name
text · optionalOptional first name. Map it to the FNAME merge field when you import, so your greeting works.
Email
email · requiredRequired. Leave double opt-in switched on in Mailchimp, and a mistyped or borrowed address never becomes a subscriber.
I agree to receive marketing emails
checkbox · requiredRequired, and worded about marketing emails in general. Rewrite it to say what you send and how often, rename the field to _consent and switch on consent capture, and each signup is stored with that wording and the time.
When to use it
Use it when Mailchimp's embedded form clashes with your design, loads scripts you would rather not have on the page, or you want every signup recorded with its consent before it reaches the list.
This is not an official Mailchimp integration, and nothing is added to your audience until you connect the two, by webhook, an automation tool or CSV import.
Privacy and GDPR
- The consent text should name the sender and the kind of email. I agree to receive marketing emails says neither, so replace it with your own wording.
- Your privacy notice should say which mailing service you use to send the newsletter.
- After signups are in your audience, set a short retention on the form so the list is not kept twice.
03 / Make it yours
Choose your stack. Copy your form.
Replace the example endpoint with your Formward endpoint, then adapt the fields to your needs.
<form action="https://forms.formward.eu/f/your-form-id" method="POST">
<label for="name">First name</label>
<input type="text" name="name" id="name" />
<label for="email">Email</label>
<input type="email" name="email" id="email" required />
<label>
<input type="checkbox" name="consent" id="consent" required /> I agree to receive marketing emails
</label>
<input type="text" name="_gotcha" tabindex="-1" autocomplete="off" style="position:absolute;left:-9999px" aria-hidden="true" />
<button type="submit">Send</button>
</form>Accessibility
Accessible by default, and how to keep it that way
- Every field in the code has a visible label tied to it with for and id, so screen readers announce what to enter and a click on the label focuses the field.
- Required fields carry the required attribute, so the browser explains a missing answer before anything is sent. Say “required” in words as well; an asterisk or a colour alone is easy to miss.
- The spam trap field (_gotcha) is hidden from screen readers with aria-hidden and skipped by the Tab key, so people never meet it.
- In the JavaScript versions, show the confirmation or error in an element with role="status" so the result is announced, and keep the entered answers when sending fails.
Changed the fields? Paste your version into the HTML form tester to see exactly what it sends, or run it through the GDPR form checker.
04 / Implementation
How the code talks to Formward
Each form you create gets its own endpoint in the form https://forms.formward.eu/f/your-form-id. The HTML version posts to it directly and the browser is redirected to a thank-you page, so it works without JavaScript.
The Next.js version below sends the same fields with fetch and an Accept: application/json header. Formward then answers with { ok: true, id }, or an error body with 402 when the account is over its allowance and its Over limit folder is full, and 429 when the rate limit kicks in. See responses and status codes.
Next.js client component
"use client";
import { useState } from "react";
export function MailchimpSignupForm() {
const [sent, setSent] = useState(false);
const [error, setError] = useState("");
async function onSubmit(e: React.FormEvent<HTMLFormElement>) {
e.preventDefault();
const form = e.currentTarget;
setError("");
try {
const res = await fetch("https://forms.formward.eu/f/your-form-id", {
method: "POST",
headers: { Accept: "application/json" },
body: new FormData(form),
});
if (res.ok) {
setSent(true);
form.reset();
return;
}
} catch {
// Network failure: fall through to the same message.
}
// The answers stay in the form so the visitor can try again.
setError("Sending failed. Please try again.");
}
if (sent) return <p role="status">Thanks! Your message has been sent.</p>;
return (
<form onSubmit={onSubmit}>
<label htmlFor="name">First name</label>
<input type="text" name="name" id="name" />
<label htmlFor="email">Email</label>
<input type="email" name="email" id="email" required />
<label>
<input type="checkbox" name="consent" id="consent" required /> I agree to receive marketing emails
</label>
<input
type="text"
name="_gotcha"
tabIndex={-1}
autoComplete="off"
style={{ position: "absolute", left: "-9999px" }}
aria-hidden="true"
/>
<button type="submit">Send</button>
<p role="status">{error}</p>
</form>
);
}
Spam protection
- The generated code already includes the hidden _gotcha honeypot. Leave it in: a bot that fills it gets a normal success response, the submission is filed as spam and no email is sent.
- Every form has a per-IP rate limit, and you can restrict it to your own domains with the allowed-origins list in the form settings.
- Cloudflare Turnstile is optional and works on every plan, including Free. Turn it on in the form settings, add the widget to your markup and Formward checks the token server-side.
- The form settings can also reject disposable email addresses, which is worth turning on when a fake address would waste your time.
What happens after submit
- Each Mailchimp signup is emailed to your notification address and kept in the dashboard on every plan.
- From Personal, export signups as CSV and import them into your Mailchimp audience.
- From Professional, a webhook to an automation tool such as n8n can add each subscriber as it arrives.
Questions
- Does this form add subscribers to Mailchimp automatically?
- Not on its own. Signups are stored in Formward. From Professional, a webhook and an automation tool can add them to your audience as they arrive; from Personal, you can also export a CSV and import it.
- Why not use Mailchimp's own embedded form?
- You can, and it is less work. Building the form yourself gives you full control of the markup and styling, no third-party script on the page, and a consent record of your own for every signup.
Related
- Newsletter signup template
The plain version for any mailing tool.
- Klaviyo signup template
The same idea for a Klaviyo list.
- Consent checkboxes
Writing a consent text that names what you send.
- Integrations
Webhooks, n8n and exports.
- Signup templates
Newsletter and waitlist forms.
Customize before publishing
- Remove fields you do not need and mark only essential answers as required.
- Replace placeholder wording with terms your audience already understands.
- Add your privacy notice, retention details and expected response time.
- Test keyboard focus, validation errors and the confirmation state on mobile.
Use this template
Create a free account and the form is set up from this template. Copy your endpoint and replace https://forms.formward.eu/f/your-form-id in the code above.