Sub topic 5
Designing a compliant sign-up form
This chapter assumes you know what valid consent means (freely given, specific, informed, unambiguous), can read basic HTML, and understand that an email address is personal data. It turns those criteria into a working form.
What the form has to do
A sign-up form is where consent is collected, so each criterion for valid consent maps to a design choice.
| Criterion | Form design choice |
|---|---|
| Freely given | Do not make newsletter consent a condition of unrelated services. Do not bundle it with terms of service. |
| Specific | Name one purpose per checkbox, such as "monthly product newsletter". |
| Informed | Say who you are, what you will send, and link to your privacy notice. |
| Unambiguous | Require a clear action by the user. Never pre-tick a box. |
A compliant form
The example below follows these rules. The consent checkbox is unticked, names one purpose, and sits apart from the email field.
<form action="/subscribe" method="post">
<label for="email">Email address</label>
<input type="email" id="email" name="email" required>
<label>
<input type="checkbox" name="consent_newsletter" value="yes">
Email me the monthly Example Co. product newsletter. You can unsubscribe at any time.
</label>
<p>We use your email address only to send the newsletter. See our <a href="/privacy">privacy notice</a>.</p>
<button type="submit">Subscribe</button>
</form>Several details matter here:
- The
checkboxhas nocheckedattribute. The user must tick it. - The checkbox is not
requiredin the HTML. The email field is required, but the consent is the thing being asked for. Your server must still refuse to add the address to the list ifconsent_newsletteris missing. - The label states the sender (Example Co.), the content (a monthly newsletter), and the exit (unsubscribe at any time).
- The privacy notice is linked next to the form, so the user sees it before submitting.
Common errors
- Pre-ticked boxes. Under GDPR and ePrivacy, a pre-ticked box is not a clear affirmative action. Regulators and the EU Court of Justice have said so.
- Bundled purposes. "I agree to the terms and to receive marketing" in one box is not specific. Use separate boxes.
- Consent as a condition. If you need an email address to deliver an order, that is fine. If you refuse to deliver unless the customer also accepts marketing, the consent is probably not freely given.
- Vague wording. "Keep me updated" does not say what you will send. Say "monthly product newsletter".
- Hidden notices. Small grey text or a link on another page weakens the "informed" requirement.
- Validating only in the browser. Client-side checks can be bypassed, so check the consent field on the server.
What happens after submission
A good form is the first step in a flow. The submission should lead to a confirmation email (see the next chapter on double opt-in) and a stored record of what the user agreed to. The text the user saw, the page URL, and the time all need saving, so keep the wording of the label in version control.
Checklist before launch
- The consent checkbox is unticked by default.
- Each purpose has its own checkbox.
- The label names the sender and the content.
- The privacy notice is linked beside the form.
- The server checks the consent field.
- The label text is versioned so you can prove what users saw.
Exercise
A form has a pre-ticked checkbox reading "Keep me updated with news and offers from us and our partners." List three problems and give a better label.
Show answer
Problems: (1) the box is pre-ticked, so there is no clear affirmative action; (2) "news and offers" is vague, and "us and our partners" bundles several senders and purposes into one consent, so it is not specific or informed; (3) the sender and content are not named. A better label, with the box unticked: "Email me the monthly Example Co. product newsletter. You can unsubscribe at any time." If partners should also send marketing, ask for that separately and name them.