Custom Web Ordering Forms: Keep Delivery and Billing Choices Clearly Grouped
Using a fictional wholesaler's ordering form, group delivery choices and tax invoice details with fieldset and legend as W3C describes, run before-and-after acceptance checks by sight, keyboard and screen reader, and let AI flag orders with doubtful billing details for accounts staff to confirm.
Published by Mentrix Digital ·

Key points
- When two groups share an option label, such as “Branch” under both delivery and billing, each group needs a name that software can read. A bold heading that sighted users see is not enough: screen reader users, and phone users who have scrolled the heading off screen, cannot tell which question they are answering.
- Group by the questions the buyer has to answer, not by the coloured boxes in the design. Make it an acceptance criterion that “Same as delivery address” is never pre-ticked and that, once ticked, the copied address is shown for the buyer to read back.
- AI can flag orders whose billing details do not match the customer record before a tax invoice is issued, but it never edits the data or contacts the customer. Accounts staff confirm every flag.
The option says “Branch”, but not branch of what
A fictional bakery ingredients wholesaler sells flour, butter and packaging to cafés and bakeries with several branches, and is commissioning a web ordering form to replace taking orders over chat. The first prototype has two sets of radio buttons, one below the other. The first asks where to deliver, “Head office” or “Branch”; the second asks who the tax invoice should be issued to, “Head office” or “Branch”. Each set has a bold heading that is only styled text, not tied to the options in the code, and a “Same as delivery address” checkbox is ticked by default, which hides the billing fields.
In this scenario that causes two problems. A screen reader user hears only “Branch, radio button, 2 of 2”, with no way to tell whether the question is about delivery or billing. A phone user who has scrolled past the heading answers the wrong set. Tax invoices are then issued to a branch when the café's accounts team wanted them issued to head office. Suppose that over 4 weeks there are 410 orders and 23 tax invoices have to be reissued. The business and figures in this article are hypothetical, not client work.
The W3C WAI Grouping Controls tutorial explains that grouping related controls makes forms more understandable, and that grouping needs to be done both visually and in the code, using fieldset to wrap a group and legend to describe it. Its examples cover radio buttons, checkboxes and related fields such as shipping and billing addresses. The same page warns that some screen readers read the legend with every control in the group while others read it once, so the legend should be short and clear. This article uses that page as the basis for a test list; passing the list is not the same as a full WCAG audit.
This article is about grouping questions. If the problem is users not knowing what went wrong after submitting, error messages are covered in the guide to forms that help users fix errors →
Group by the buyer's questions, not by the boxes in the design
Before looking at the design, write down the questions the form asks the buyer. In this example there are four: how will you receive the goods, where should they go, who is the tax invoice issued to, and where should documents be sent. Each question is one group, and its legend is a short form of that question. Then have the developer state in the specification how each group is built, and accept it by testing, not by watching a demo:
- Delivery method: radio buttons in a fieldset with the legend “Delivery method”. Each option label makes sense on its own, such as “Deliver to shop, morning round 6:00–9:00” and “Collect from Bang Na warehouse”.
- Delivery address: a separate fieldset with the legend “Delivery address”. If collection is chosen, the whole group is hidden and no longer required, and the warehouse address and opening hours are shown instead.
- Tax invoice issued to: a separate fieldset with the legend “Tax invoice issued to”. Choosing “A branch” reveals the branch code field immediately next in the focus order.
- The “Same as delivery address” checkbox sits inside the billing group, is never pre-ticked and, once ticked, shows the copied address as text to read back rather than silently hiding the fields.
- A long branch list in a select is grouped by region with optgroup, as the W3C page suggests. A short list of five options or fewer works better as radio buttons, where every choice is visible.
- No fieldsets nested more than one level deep. If a component cannot be wrapped in a fieldset, use role="group" with aria-labelledby pointing at the visible heading, and hold it to the same listening test.
If you need a custom ordering form with its question groups and grouping markup written into the specification, see Websites & Landing Pages →
Thai and English legends: short, direct and distinct from other groups
Because some screen readers repeat the legend with every option, a long legend quickly becomes tiring to hear. Write it as a short question that reads naturally when joined to an option label, such as “Tax invoice issued to, a branch”. Even with distinct legends, option labels in the two groups should not be identical word for word, so that people who skip the legend can still tell them apart.
The English version should not be a literal translation of the Thai. “Tax invoice issued to” reads more naturally than a word-for-word rendering, and the Thai for collecting from the warehouse becomes “Collect from warehouse”, not “Receive by yourself”. A reviewer for each language should read the real form on screen, not a separate text file. Examples before and after:
- Before: “Branch” in both groups. After: “Deliver to a branch shop” under delivery method, and “A branch (enter branch code)” under tax invoice.
- Before: the legend “Please select your preferred delivery method from the options below”. After: “Delivery method”.
- Before: a bold heading not tied to the options. After: a real legend styled to look exactly the same, so the design does not change.
- Before: help text “Your accounts team may need a branch number” at the bottom of the form. After: moved under the legend and tied to the group with aria-describedby.
- English labels: “Delivery method”, “Delivery address”, “Tax invoice issued to”, “Same as delivery address”.
Before-and-after acceptance checks by sight, keyboard and screen reader
Prepare four test orders with made-up data, never real customer details: collect from the warehouse; deliver to a branch but invoice head office; deliver to and invoice a branch; and invoice at the same address as delivery. Test at least with NVDA on Windows, VoiceOver on iPhone and TalkBack on Android, plus keyboard only on a computer. The tester completes all four orders without looking at the screen and notes what they hear on entering each group. The form passes only when every check below passes on every combination:
- Entering the first billing option. Before: “Head office, radio button, 1 of 2”. After: “Tax invoice issued to” is announced with the option.
- Choosing collection. Before: the address fields are still required and the form will not submit. After: the delivery address group disappears, the warehouse address is shown and the form submits.
- Same-address checkbox. Before: pre-ticked, billing fields hidden. After: unticked; when ticked, the copied address is both shown and announced.
- Choosing a branch for billing. Before: the branch code field appears at the end of the form. After: it is next in the focus order and announced when it appears.
- At 320 pixels wide and 200% zoom. Before: group headings scroll off while answering. After: every legend sits directly above its options, never cut off or overlapping.
- The review screen before confirmation shows delivery and billing details under separate headings, and the buyer can go back to fix one group without losing the other.
The review screen is the buyer's last chance to see a choice made in the wrong group; designing it is covered in the review-before-submit guide →
AI flags doubtful billing details; accounts staff confirm
Even a well-grouped form will sometimes be filled in wrongly, so the next step is a check after submission and before the tax invoice is issued. The system passes the order's billing details, together with the customer record the wholesaler already holds, to AI for comparison, and AI flags anything that does not match: a branch code missing from the record, a company name that differs from the registered one, an order note saying “invoice the parent company” while the form says a branch, or a customer who has always been invoiced at head office suddenly choosing a branch. AI must state its reason and the fields involved every time.
AI does not edit the order, does not message the customer and receives no payment data. An accounts clerk works through the flag queue before the invoice run, checks with the customer where needed, and records what was changed, why and on what evidence. If AI is unavailable, every order goes through the existing manual check. Each week, count what share of flags the accounts team confirmed as genuine. If too many flags are wrong, reviewers start approving without reading, which is worse than having no flags at all.
If you want AI to compare billing details with your customer records and send reasoned flags for accounts staff to confirm, see Custom AI Solutions for Business →
Acceptance conditions and post-launch metrics
Write these conditions into the scope before development, accept the work from recorded test results, and measure 4 weeks before against 4 weeks after launch. Post-launch figures can move for other reasons, such as new customers or a festive season, so read them alongside the recorded reason for each correction rather than drawing conclusions from one number:
- Every option group and address group uses fieldset and legend, or a named role="group", with listening test results from every agreed tool combination.
- The tester completes all four test orders without looking at the screen and always names correctly which group's question they are answering.
- Nothing is pre-selected in the tax invoice group, and the same-address checkbox is never pre-ticked.
- Share of orders needing a reissued tax invoice because of a wrong name or branch, before and after; for example, a hypothetical 23 of 410 orders, about 5.6%, before launch.
- Number of orders where staff had to call to check the delivery destination or billing details.
- AI flag precision: flags the accounts team confirmed as needing a fix, divided by all flags, reviewed monthly, alongside wrong orders that were never flagged.
- A record of who changed billing details on which order, when, and on what evidence.
If you want confirmed billing details sent into your accounting system without retyping, with every correction logged, see Automation & Business Software →
Sources
- Standards guidance · W3C Web Accessibility Initiative: Grouping Controls · Accessed


