
A list of radio buttons needs a question, not just individually named answers. On a Contact Form 7 inquiry form, “Email,” “Phone” and “Either” mean little if the visitor cannot identify that they answer “How should we reply?” A fieldset groups those controls, and its legend gives the group its context.
Use this pattern when several choices share one question or when related fields need a meaningful group name. It complements individual labels and error messages; it does not replace them. The goal is a form whose structure remains understandable visually, by keyboard and with assistive technology.
Choose the group before writing markup
Start with the reader’s question. A contact preference group could contain three radio choices. A service-interest group might contain several independent checkboxes. Two address sections could each contain similar fields but have different purposes. These are stronger grouping candidates than wrapping the entire form in a fieldset called “Form.”
W3C guidance explains the relationship between a fieldset and its legend and advises keeping the group name concise. A screen reader may announce that context differently depending on the browser and settings. Write individual labels that still make sense, then use the legend to provide the shared question rather than repeating a paragraph before every answer.
Add a radio group to the Form template
The following is a Form-tab example. It uses ordinary HTML around a CF7 form-tag:
<fieldset>
<legend>How should we reply?</legend>
[radio reply-method use_label_element default:1 "Email" "Phone" "Either"]
</fieldset>
CF7’s use_label_element option wraps each radio choice in its own label. The fieldset provides the grouping and the legend names it. Do not wrap the whole generated radio group inside another label; that can create confusing associations between one label and multiple controls.
CF7 treats a radio group as required and documents its default option syntax. Here, Email is preselected. Choose a default only when it matches the task and explain the behavior to the owner. A preselected contact preference is not permission for unrelated marketing.
Use a checkbox group for independent selections
Checkboxes are appropriate when visitors may choose more than one answer. Give that group a different field name and question:
<fieldset>
<legend>Which services interest you?</legend>
[checkbox service-interest use_label_element "Installation" "Training" "Maintenance"]
</fieldset>
This example is optional. If at least one selection is genuinely required, review CF7’s checkbox* behavior and make the requirement clear in the question. Do not use visually exclusive checkboxes as a substitute for a radio group merely to reproduce a design. See our choice-field configuration guide for the submission semantics.
Preserve labels on fields inside other groups
A fieldset called “Company details” can group related text fields, but each field still needs its own visible label. “Company name” and “Company website” are more useful than two unlabeled boxes beneath a heading. A legend is the name of the group, not a universal label for every child.
Avoid nested fieldsets unless the relationship actually requires them. Long chains of groups make forms harder to scan and may create repetitive announcements. If a single input has a complete, clear label, it often does not need a separate fieldset. Focus on genuine groups of related controls, especially choices whose answers depend on the shared question.
Check the rendered page, not only the editor
Open the page containing the form after saving. Inspect that the fieldset surrounds the generated controls and that the legend is the first child of that fieldset. Theme styles may change borders, margins and typography, so the Form tab alone cannot show whether the group is understandable.
Keep the question visible at narrow widths. A styled legend should not be clipped by a fixed-height container, covered by a decorative background or pushed off-screen. Let choice labels wrap naturally. If you add custom styles, scope them to the intended form and retain focus visibility; our CF7 CSS guide covers that maintenance boundary.
Run a focused interaction review
- Use Tab to reach the group and the surrounding fields. Check the expected radio-arrow behavior in the target browser.
- Click or tap each visible answer label and confirm it activates the intended control.
- Review the page with a screen reader and verify that the question and each answer are understandable together.
- Trigger a required-field error in staging and confirm its message stays associated with the relevant question.
- Inspect the narrow mobile layout with long translated labels and text zoom.
Automated tools can identify some structural issues, but a passing scan does not establish that the question is clear or that every assistive technology combination behaves identically. Keep the observations specific: browser, screen reader where used, viewport, question and issue found. Do not report accessibility certification based on this short review.
Keep mail and reporting aligned with the question
Add the corresponding mail-tags to the notification if the team needs these answers. A visually correct group can still be missing from the email. Check a synthetic message after a label change and verify that downstream mappings still refer to the field’s stable name.
After the form is understandable and its answers arrive where intended, use Svetlik Analytics for Contact Form 7 for submission trends and statistics. Those reports do not assess fieldset semantics or prove that an accessibility change caused a conversion improvement. Keep interaction findings and submission measurements as separate evidence.
