DTC Commerce Growth Lab ·
Identify common customer fields by purpose as well as their visible label
Identify common customer fields by purpose as well as their visible label
A visible label tells a shopper what to enter, while programmatic purpose information can help browsers and assistive technologies understand the same field. W3C's Identify Input Purpose guidance covers supported inputs collecting specified kinds of information about the user. Review those fields in the actual checkout or account form, keeping semantic purpose distinct from the wording the shopper sees.
Start with a field inventory and the applicable input-purpose list. Identify which fields collect the user's name, address, contact information, or another covered purpose. Ask the developer how each is exposed in the actual technology. The criterion has a defined scope, so do not assume every possible form question must use a made-up purpose value.
For HTML, W3C describes the autocomplete attribute and its fixed vocabulary as one technique. It can distinguish a given name from a family name more precisely than a broad input type. A field identified as email by type does not by itself establish whether it is the user's address or another person's. Use the actual purpose and supported values rather than guessing from a generic field name.
For a fictional furniture checkout, a form may visibly ask for a customer's given and family names. The review checks that the supported purpose information agrees with those fields. It should not assign a purpose based only on layout position or assume that a browser's successful guess proves the programmatic information is present.
W3C explicitly separates purpose exposure from whether the user agent actually fills a field automatically. Heuristic autofill can occur without satisfying the criterion, and a user's choice not to use autofill does not remove the field's semantic purpose. Record the actual metadata evidence and continue to review visible labels, instructions, and error handling under their own requirements.
Check the fields again after a checkout-template update. When comparing shop themes or form components, ask how their common customer fields expose supported purposes. Affiliate links may earn this site a commission. The useful result is a form with understandable labels and accurate machine-readable purpose information, so different supported user technologies can assist the shopper without having to infer everything from the visible text alone.
Sources and further reading
This is general information. Check the relevant authority or manufacturer for the rules, compatibility and terms that apply to your situation.
More practical guides