Pass the menu and read the page

SignupFolio

Address-level fields: 4 levels for signup forms

Address-level1 through address-level4 describe increasingly precise areas within a country; ask only for the detail your signup form needs.

Key takeaways

  • Write down what each address field helps you decide.
  • Match address labels to the destination country.
  • Check delivery requirements before choosing shipping fields.
  • Clearly identify required fields and expected formats.

Address fields are where that cost is easiest to miss. A team adds a full postal address to a free trial because the shipping team once asked for it, or it asks for a city without deciding what the city will be used for. Each extra line makes the form longer, and some people stop filling it in.

Precision is a practical way to sort this out. Address fields do not all describe the same thing. Some name a large area, and others name a single lot or building. The MDN reference for the autocomplete attribute describes four administrative level fields, address-level1 through address-level4, that "describe the address in terms of increasing levels of precision within the country in which the address is located." That gives you a ladder. The question for each field is how far down the ladder your decision needs to go.

This article is for the growth lead who decides what the form asks. Nothing in it requires technical training, and the four levels give a team a shared way to argue about depth. It covers how the four levels differ, how address examples map onto them, and how to decide which ones earn a place. The last sections touch on labels and error messages, which your developers will handle, but those details decide whether the fields you choose get finished.

Start with the decision, not the address

Every address field should be justified by something the business does after the form is submitted. Write that down before anyone opens the form builder. A useful test is to ask what breaks if the field is blank. If nothing breaks, the field is a nice-to-have, and it should be optional or removed.

One way to make this concrete is to write the decision as a single sentence before any field is named. For example: "We ship a sample box, so we need delivery details for the destination country." If the sentence cannot name a field, that field has no job on the form. The same sentence also shortens later debates, because anyone can test a proposed field against it.

Different offers need different depths. A trial that ships a physical sample needs enough detail to deliver a parcel in that country. A newsletter that personalizes regional content needs a region, not a street. A demo request that only books a sales call may need a city and a country so that the right team member gets routed, and nothing finer. Those three forms stop at different levels, and none of them needs the full address by default.

The default is the problem. Teams discover the cost later, when signups fall and nobody remembers why each field was added.

A single form often serves more than one decision. When that happens, choose the deepest level any one decision needs, and ask whether the other decisions can work with less. Asking for everything because one team might use it is how forms grow past the point where anyone wants to finish them.

Before you change the field list, talk to whoever uses the data. Ask the fulfillment or support lead which address problems they actually see, and which missing details force them to write back to a customer. Their answers will tell you more about the right depth than any general guide can.

If a tax, licensing, or shipping rule in one of your markets makes a particular address field legally necessary, confirm that with your legal or finance team before you drop it. The rule decides the field, not the form's design.

For the wider field list, see how many form fields to ask for.

Map the four levels to your form

address-level1 is the least specific of the four. The example for the United States makes this concrete: "In the United States, the least-specific portion of the address is the state, in this case \"CA\" (the official US Postal Service shorthand for \"California\")." On a form, this is usually a state, province, or region. Because the set of valid values is fixed, a select menu is often a better control than free text, which also stops people from typing "Calif." in one place and "CA" in another.

address-level2 comes next. It is the second-least specific portion, the city or town name. In the example address, that value is "Exampleville." For many growth forms, the city is the most detail a campaign needs. It can support local event invitations, regional sales territories, or a rough sense of where a customer is, but it does not identify a building, so it cannot deliver a parcel on its own.

address-level3 and address-level4 continue the ladder below the city. The four fields are described together as increasing in precision within the country, which places these two beyond the city. Before you add either to a form, look at how your target countries break down their addresses, and build the fields to match. Do not assume one country's labels fit another.

address-line1 holds a different kind of detail. MDN describes an example address line as an area name and a lot number. For your form, line one is the field a person must type in full, often from a mailed letter or memory, so it is where a clear label and a short example do the most good.

One technical point matters for the rest of the build. The autocomplete attribute can be used on text and numeric inputs, textareas, selects, and form elements, so you can name each address field no matter which control your team chooses. Naming them consistently gives browsers a clear label for each value, which helps people who rely on saved details.

Labels are a separate question. Internal names such as address-level2 are for the browser and your developers. Show people plain labels such as "City or town" and "State or province," written the way people in that country describe their own address. A label that matches local usage avoids the hesitation that comes from guessing which box a value belongs in. Review visible labels and accessible names alongside these choices.

Compare the levels side by side

Use this table to compare field meanings. The purpose of your form decides which ones to ask for.

FieldMeaningExample
address-level1Least specific of the four levelsState "CA", the US Postal Service shorthand for California
address-level2Second-least specific; the city or townCity "Exampleville"
address-line1An area name and a lot numberIllustrative: area name followed by lot number

Check country-specific address structures before adding finer administrative levels.

Walk through a shipping form

Use the example fields to plan a trial form that ships a sample box to a United States address. Confirm the destination's delivery requirements before using this field list. If the sample box ships to a different country, the first step changes, because the country decides which levels apply. The form may then need a level-3 or level-4 field, while the method stays the same.

  1. Confirm the country first. The four administrative levels all sit inside one country, so the form needs to know which country it is dealing with before it asks for any of them. Put the country field at the top.
  2. Ask for address line one. This is the street-level line, which holds delivery details. Keep it as a single free-text field. Check that it captures the delivery line the destination needs.
  3. Ask for the city. The city, "Exampleville" in the example, is address-level2. It sits one step below the state in precision, so the form asks for it alongside the state.
  4. Ask for the state. The state, "CA", is address-level1. Use a select menu so the value is always the shorthand the US Postal Service uses for California.
  5. Ask for the postal code. Include a postal code field in the delivery address. Check whether finer levels are needed. Leave out address-level3 and address-level4 unless the destination's delivery requirements call for them.

The proposed list has five fields: country, address line one, city, state, and postal code. Each one maps to a decision the business makes after submission.

A person whose address has more detail than the form asks for can still type it into line one, such as a building name. The form does not need to reject that, and it does not need a separate box for it. Leaving out extra boxes is a choice that should be easy to defend in a review.

Illustrative example: remove an unused field

Its city field supports no other decision. Removing that field leaves 9 fields while keeping the region needed for the newsletter. Check with the team using the data before making the change.

Choose controls and required marks

Once you know which fields to ask for, two decisions remain: which control to use and how to mark what is required. WebAIM's guidance on accessible forms says that "Instructions, cues, required form fields, and field formatting requirements must be clearly identified to users." That covers more than a red asterisk. A person should know, before submitting, which fields are required, which are optional, and what format a value needs.

Marking optional fields matters as much as marking required ones. If the level-3 field or a second address line is optional on your form, say so in plain words. Otherwise people may assume every box is mandatory and abandon a form they could have finished. Keep the set of required fields as small as the decision allows, because each required field is a place where a person can get stuck.

City is usually a free-text field, since a complete list of cities is long and often out of date. State works as a menu because the list is short and fixed. Matching the control to the size of the list is a simple rule for the form builder to follow.

Place the address block after the questions that identify what the person wants, not before them. A person who has already said what they are signing up for is more willing to finish a longer block.

After launch, watch where people stop. If most drop-offs happen on one address field, examine that field first. The fix might be making it optional, changing its control, or cutting it. Start with the field's purpose, since a field that matches a real decision may be worth keeping with a clearer label.

Write errors that name the format

Required fields and format rules are often the same fields. The W3C's guidance on error suggestion gives this example: "when a mandatory field also requires the data to be in a specific format." When that happens, an error that only says "required" or "invalid" leaves the person guessing. The message should say what a valid value looks like, so the person can fix it on the first retry.

For a state field, that means naming the expected value. For line one, it means showing a short example of a complete line. The goal is that a person who made a mistake knows exactly what to change, without contacting support.

Place each message next to the field it describes, and keep it in plain words. An error at the top of the form, far from the box, sends people searching. The same message beside the field shows them where to look and what to type.

Add fields one at a time

The field list will change after launch. Sales wants a company size, support wants a second contact, and someone in finance wants a billing region. Each new address field should arrive with its decision attached. When a team asks for one more address field, ask which decision it supports and which level of the ladder it sits on. If nobody can answer, leave the field out.

Give the field list one owner, the person who answers when someone asks to change it. Removing a field is harder than adding one, because someone usually has a reason for it, even if the reason is out of date. Ask that owner what the field feeds before cutting it, and consider removing a field nobody can explain.

Keep a dated note beside the form specification that records why each address field is there and which team uses it. When someone proposes a change later, that note settles the argument faster than memory will, and it shows the next editor which fields are safe to remove.

Today, choose one address field on your form and ask its owner to write down the decision it supports.

Address field questions

What does address-level1 mean?

It is the least specific administrative level within a country. In the United States example, it is the state.

Is address-line1 the same as address-level1?

No, address-line1 holds delivery-line detail, while address-level1 identifies a broader administrative area.

Does every form need all four administrative levels?

No, the form's purpose and the destination country's address structure determine which levels it needs.

Sources and check date

Related posts

More posts