Fields
Every country draws its form from these 11 fields. A country picks which of them it asks for and in what order, and may relabel four of them (line3, city, state, postcode); everything else here is the same everywhere.
Names and tokens
The label is the English default. The autocomplete token says what the field holds, whatever its name, and is what browser autofill fills it by.
| Field | Label | Autocomplete | Required |
|---|---|---|---|
country | Country | country | Always |
first_name | First name | given-name | Always |
last_name | Last name | family-name | Always |
email | email | Always | |
phone_number | Phone number | tel | Never |
line1 | Address | address-line1 | Always |
line2 | Apartment, suite, etc. | address-line2 | Never |
line3 | Address line 3 | address-line3 | Never |
city | City | address-level2 | Where collected |
state | State/province | address-level1 | Where a curated layout collects it |
postcode | Postal code | postal-code | Where a curated layout collects it |
On the default layout the postcode and state are optional, because many of the countries on it have neither. The email is described for every country but in no layout: a form asks for it once, however many addresses it has. A page may still require a field no country does, such as the phone number.
Inputs
How each control is drawn. A state becomes a select in a country with a list of states.
| Field | Type | Max length | Capitalize |
|---|---|---|---|
country | select | none | none |
first_name | text | 255 | words |
last_name | text | 255 | words |
email | email | 254 | none |
phone_number | tel | 24 | none |
line1 | text | 255 | words |
line2 | text | 255 | words |
line3 | text | 255 | words |
city | text | 255 | words |
state | text | 255 | words |
postcode | text | 64 | characters |