Everyday takeaways
- A signup field spec is a shared record with one row per field, stating the input type, whether the field is required, the error rule, and the source behind that rule.
- Write the source into the row itself, so that when engineering asks why a rule exists, the answer is a named standard, a browser value, a regulator's text or published guidance.
- Set the password floor from the government standard before the design locks, and pick the row that matches whether the password is the only factor.
- Build the name as one full-name field unless a downstream system needs the parts, because a single field can accommodate the broadest range of name types.
- Make the marketing opt-in a separate, unticked choice, since silence and pre-ticked boxes do not count as consent under the regulator's consent text.
- Show an error summary at the top of the main container whenever validation fails, and link each error to the field it describes.
The decision behind each field
A signup field spec is a shared record that lists each field with its input type, its required status, its error rule and the source behind that rule. The decision you are making is which fields to ask for at all, and how strict each one should be, before any code is written. TL;DR: every row needs a type, a rule and a source, and a row without a source is a preference that should be labelled as one.
Engineering tends to ask three questions about each row: what the field is, why it is on the form, and what happens when it fails. A well-built row answers all three, and the source column answers the second question with something other than opinion. The field rules table sets out the rows this guide covers.
| Field | Input type and autocomplete value | Required? | Where the rule comes from |
|---|---|---|---|
| email input, autocomplete "email" | Yes | the autocomplete values | |
| Password | new-password value on the create field | Yes | the password length text |
| Full name | one name field, autocomplete "name" | Yes | the name-field guidance |
| Marketing opt-in | unticked checkbox, separate from the terms | No | the consent text |
According to MDN, the email value means "An email address.", the username value means "A username or account name.", and the new-password value is for a field such as "Enter your new password" rather than a current-password field.
According to Web Accessibility Initiative, you should use the label element to identify each form control, and only ask users to enter what is required to complete the transaction or process. Those two points set the spine of the spec: the autocomplete values say what each field is, and the labelling and minimum-ask rule say why it is there. Required status is a choice you have to justify, not a default, so each row marked Yes should name the process it serves.
Who this spec is for
This spec suits growth leads and marketers who write the signup form and hand it to engineering, and who need each field agreed before the build starts. It also suits a product owner who must later explain why a field is in the form or why it is missing.
Red flags: nobody on the engineering side will own the server-side checks, or legal has not reviewed which personal data the form collects. Also, the team plans to pass signups to another system before the consent wording is settled.
Email: the browser's type and the autocomplete value
The email row is the one teams most often get right, which is why the spec should still state it in full. Set the input type to email and the autocomplete value to email, so the browser knows what kind of entry to expect, and name a single address as the rule. A browser check helps the person fix a typo before sending, but it does not replace the server rule, so the spec should name both.
The browser source for this row is the email autocomplete value quoted above.
Who this suits: any signup where the address is both the contact and the login. Where it breaks down: if users need a login name apart from the address, the username value described above applies. The spec then needs a second row with its own rule. The spec should not let one row carry both meanings.
How to carry it out: write the email row with the input type, the autocomplete value, the single-address rule and the server check. Then link any email error in the error summary to this field. If the form asks for the address twice, the spec should say so and state the match rule, rather than leaving that to the build. The row is short, and that is its strength: a reviewer can check each item against the build without asking anyone what was meant.
Password: the length floors that engineering needs
Maximum length verifiers should permit: at least 64 characters according to NIST, which sets a higher minimum for a password used as a single-factor authentication mechanism than the minimum of eight characters for a password used only in a multi-factor process, and states that other composition rules, such as a required mix of character types, shall not be imposed.
The password floors table lists the figures from that text.
| Rule in the NIST text | Figure |
|---|---|
| Single-factor password minimum | higher than the multi-factor minimum; copy the figure from the linked text |
| Multi-factor password minimum | eight characters |
| Maximum length a verifier should permit | at least 64 characters |
| Composition rules | none imposed |
Who this suits: a signup where the password is the only proof of identity, which means the single-factor row. Where it breaks down: if the signup adds a second factor, the lower row can apply. That, however, is a design decision the spec must record, not a default the team drifts into. Some teams add a rule such as a required symbol because a template asks for one. The text above says such a rule should not be imposed, so the spec should delete it unless a stronger source overrides it.
How to carry it out: write the new-password value on the create field and on the confirmation field, and put the minimum in the row. Then add the maximum and the no-composition rule, and show the rule as visible text under the box. Engineering will ask what counts as a valid password, and the answer should be the table, not a rule of thumb.
Full name: one field or two
A single name field can accommodate the broadest range of name types, but it means you cannot reliably extract parts of a name, according to GOV.UK Design System.
The name options table sets each choice beside what it means for the spec.
| Option | What it means | Who it fits |
|---|---|---|
| Split first and last name | more risk that a name will not fit the chosen format | Systems that need given and family names apart |
| One full-name field | accommodates the broadest range of name types | Most signup forms that only need a name |
Who one full-name field suits: most signups where the name greets the person and feeds no downstream part. Where it breaks down: if a billing, shipping or payroll system needs the parts, the split row is the right choice. The spec should also name the system that needs them. Splitting is a cost the spec should be able to justify in one sentence.
How to carry it out: write the row with one name field and the name autocomplete value, and add the split only when a named system needs it. Keep the label visible rather than letting a placeholder carry the instruction. Checking the row is cheap: have a team member fill the form from a real name and see whether the box holds it.
Marketing opt-in: a separate, unticked choice
According to ICO, silence, pre-ticked boxes or inactivity should not therefore constitute consent, consent should be unbundled from other terms and conditions, consent needs to be specific and informed, and refusing or withdrawing consent must not lead to a disadvantage for the person.
Who this suits: teams that send marketing messages after signup and can name the purpose in plain words. Where it breaks down: the opt-in covers only the purpose named in it, so a second use of the data needs its own choice. Also, a signup that cannot work without the box should not present it as optional.
How to carry it out: write the opt-in as its own unticked checkbox, put it apart from the terms acceptance, and name the purpose in plain words. Then let the form submit when the box is left empty. A spec that records the purpose, the box and the withdrawal path is easier to defend in review.
Error summary: where the spec says errors go
According to GOV.UK Design System, you should always show an error summary when there is a validation error, even if there is only 1, put it at the top of the main container, link each error to the answer it relates to, and, if you do not know which field contains an error, link to the first field; each answer with an error also needs its own message beside it.
The error choices table compares the options a spec can write.
| Choice | What the spec writes | Who it fits |
|---|---|---|
| Error summary at the top | Show it whenever a validation error exists, with each entry linked to its field | Any signup with a rule the browser or server can fail |
| Inline message beside the field | Keep a message next to each failed field, alongside the summary | Every row, as a companion to the summary |
| Browser message alone | Accept the browser's own message only as a first check | Not a finished error rule |
Who the error summary fits: any form with a validation rule, which covers all four rows. Where it breaks down: a summary that repeats the message without the field link does not meet the rule, so the spec must name the link target for each row. A reviewer should be able to trigger each error in the build and see the summary link land on the right field.
Glossary of spec terms
- Input type: the browser's category for a field, such as email, which tells the browser what kind of entry to expect.
- Autocomplete value: the label on a field that tells the browser what information belongs there, such as email, new-password or name.
- Required status: a marked choice that the field must be completed before submission, which the spec has to justify.
- Source: the standard, browser value, regulator text or research that backs one row.
- Error summary: a list at the top of the form that names each failed field and links to it.
- Server-side check: a rule that runs on the server after submission, so it still applies when a browser check is skipped.
- Single-factor password: a password used as the only proof of identity, which the password floors table sets at a higher minimum.
- Opt-in: an unticked choice that a person makes to receive marketing, kept apart from the terms.
Common mistakes in signup specs
- Using placeholder text in place of a label. According to Nielsen Norman Group, there are 7 main reasons placeholders should not replace field labels, so every row keeps a visible label.
- Hiding the password rule in a hint inside the field. According to Nielsen Norman Group, placing important hints inside a form field can still cause the 7 issues that article lists, albeit with less severity, so show the rule as visible text under the box.
- Pre-ticking the marketing box to lift opt-in numbers. The consent rule above rules this out, so the review should reject any default tick.
- Asking for fields with no stated purpose. The labelling guidance quoted above says to ask only for what is required, so each row needs a written reason.
- Trusting the browser check as the only check. The spec needs a server rule, because a browser check is a convenience layer and nothing more.
Worked example: one password floor and one consent ceiling
Take a signup where the password is the only proof of identity, so the spec must use the single-factor row from the password floors table. The team may later add multi-factor authentication and move to the lower floor, where passwords shorter than 8 characters still count as weak, so the spec has to record the move, according to OWASP. The password row should also permit a maximum length of at least 64 characters, according to NIST. The same signup asks for a marketing opt-in, and the higher UK GDPR maximum fine is a fixed sum or 4% of an undertaking's total worldwide annual turnover in the preceding financial year, whichever is higher, according to ICO, so the team should have the opt-in row unticked and documented before launch. The finished spec ends with a password row and a consent row, each carrying a source a reviewer can open.
FAQs
What is a signup field spec?
A signup field spec is a shared record with one row per field that states the input type, the required status, the error rule and the source behind each rule.
Does every field need its own source?
Yes, because a rule without a source is only a preference, and the spec should label it that way so engineering can tell the two apart.
Should the password rule appear inside the field?
No, show it as visible text under the password box, because a rule inside a field can disappear once someone starts typing.
Is a browser check enough to validate email?
No, because a browser check helps the person fix an entry before sending, and the spec should still name a server rule that runs on whatever arrives.
Should full name be one field or two?
Use one full-name field unless a downstream system needs the given and family names separately, because a split only pays off when those parts are used.
Can the marketing opt-in start ticked?
No, because under the consent rule above, a pre-ticked box does not count as consent.
Does an error summary replace the message beside each field?
No, because the error rule above asks for the summary and also for each answer's own message beside the field.
Which signup field spec should you pick?
- If your signup needs a login name apart from the email address, pick a separate username row, because the username value describes a different thing from an email address.
- If the password is the only sign-in factor, pick the single-factor minimum row, because it is the higher floor and the spec must not drop below it.
- If a downstream billing or shipping system needs given and family names apart, pick split name fields, because a split only pays off when those parts are used.
- If you want to ask for marketing permission, pick an unticked opt-in row with its own wording, because silence and pre-ticked boxes do not count as consent.
- If you need the error rule settled before the build, pick an error summary at the top of the main container, because the rule asks for the summary whenever validation fails.