Skip to content
easeweb
Search topics

Checkout forms that ask for the same address twice

A two-step checkout takes the delivery address, then asks for it again as the billing address, with every field empty and nothing to reuse what was just typed.

WCAG 2.2
SC 3.3.7A· new in 2.2
Required by
Not required by Section 508 or EN 301 549
Broken
The accessibility problem illustrated: Cognitive:What was my postcode again?
01

The problem

People for whom typing is slow, tiring or error-prone have to type an address they gave a minute ago, again, from memory

02

Try it

Keep the delivery address or change it, then choose Continue to payment

On the payment step, look at what the billing address asks of you.

Broken Can you fix this?

BrokenThe billing address asked again, empty

1. Delivery

A recreated demo. The broken version is intentionally inaccessible.

03

The fix

Reuse the address people already gave

Before
BrokenThe billing address asked again, empty
<!-- Step 2 of 2: Payment --><fieldset>  <legend>Billing address</legend>  <label for="bill-name">Full name</label>  <input id="bill-name" name="bill-name" autocomplete="billing name">  <label for="bill-street">Street address</label>  <input id="bill-street" name="bill-street" autocomplete="billing street-address">  <label for="bill-postcode">Postcode</label>  <input id="bill-postcode" name="bill-postcode" autocomplete="billing postal-code"></fieldset>
What is wrong3 points

The fields are labelled and declare their purpose, so they pass 1.3.5. But the delivery address from step 1 is nowhere on this page.

  • People have to type the whole address again: it isn't in the fields.
  • They can't pick it either: it isn't offered as a choice.
  • They can't even copy it: it isn't there as text.
After

A same-as-delivery checkbox, ticked by default

<label>  <input type="checkbox" id="billing-same" name="billing-same" checked    aria-describedby="delivery-address">  Billing address is the same as delivery address</label><p id="delivery-address">Sam Rivera, 12 Elm Street, AB1 2CD</p><fieldset id="billing" hidden disabled>  <legend>Billing address</legend>  <label for="bill-name">Full name</label>  <input id="bill-name" name="bill-name" autocomplete="billing name">  <label for="bill-street">Street address</label>  <input id="bill-street" name="bill-street" autocomplete="billing street-address">  <label for="bill-postcode">Postcode</label>  <input id="bill-postcode" name="bill-postcode" autocomplete="billing postal-code"></fieldset>
How it is fixed4 steps
  1. Add a same-as-delivery checkbox, ticked by default, so people whose billing address matches have nothing to type.
  2. Show the address it reuses beside it, and read it with the box through aria-describedby.
  3. While the box is ticked, hide and disable the fieldset, so its fields are skipped by Tab, by screen readers and by the browser's validation, and none of them is sent.
  4. Show the fields again when the box is unticked. People whose address differs get empty fields, which is new information, so 3.3.7 doesn't apply to it.

This fixes the Before and passes 3.3.7. On the server, a ticked box means the delivery address.

04

Verify the fix

6 checks, no mouse.

Test with: Keyboard, Screen reader, Touch

0 of 6 checked

Record the OS, browser and assistive-technology versions, the build, the date, and the actual result of each step. Repeat after the checkout's steps or its shared form components change.

How screen readers handle aria-describedby

Limits

This is a starting pattern, not a guarantee for every process. The example is a two-step checkout; sign-up flows, bookings and applications need the same walk-through, step by step. The step indicator above such a form must say which step is current, too; see step indicators that mark the current step only by its look. Payment fields inside a provider's frame are the provider's to fix, but the page around them is yours. The criterion doesn't require remembering details between visits, and saved addresses are a separate feature with their own privacy questions. Test the complete process with the people and tools your users rely on.

This is a recreated teaching example, not a finding about a named client. The code is a starting pattern: test it in your own product. No completed assistive-technology test is claimed here.

EaseWeb service

Fixed it? Keep it from coming back.

I turn guides like this one into rules your coding agents follow and checks your CI runs. Then I retest by hand with a keyboard and screen readers, periodically.

See the service