Unified desktop form layout for every site form
Inventory of every form in the site pack, and one layout for field grouping, label hierarchy, required field indication, validation message placement, and primary submit placement. Use this page when you add or change a form. It adds no new form and it changes no form field name.
Inventory of every form in the site pack
Each row states what the pack ships today. The last column names the change to reach the unified layout in the next section.
| Form and page | Field grouping | Label hierarchy | Required field indication | Primary submit placement |
|---|---|---|---|---|
| Demo form and question form, request demo page | Fieldset with legend for contact details, college and role, and what to try first or what help is needed | Legend for group, label for field, help text below the field, error text below help | Note at top of form, star in label, screen reader required text, required attribute, and aria required | Form actions block after last group, primary submit first, note below submit, confirmation replaces form |
| Anonymous question draft checker, ask anonymously guide | Fieldset with legend for draft and for checked result | Legend, label, help below field, inline error linked to field | Note at top, star and screen reader required text on question draft only | No submit. Check draft is primary action in button row, copy and save stay disabled until check runs |
| Save an answer form and add collection form, my answers page | Fieldset with legend for answer, source, and where it lives. Collection form has no fieldset | Legend, label, help below workspace and assistant fields only | Star on title only, no required note at top, no screen reader required text, validation in script | Button row after fieldsets, save primary first, cancel secondary, collection add in its own card |
| Answer insight trend calculator, answer insight page | Grid divs for scope and dates, fieldset with legend for current counts and previous counts | Label for every field, no help text except group note, status text below counts | Note that star means required, star on scope and counts, no screen reader required text | No submit. Rates update on input. Download and clear buttons after results table |
| Workspace dashboard calculator, reports page | Single grid div, no fieldset, no legend | Label for every field, help text on workspace field only, status text below fields | Note that star means required, star on workspace and counts, no screen reader required text | No submit. Rates update on input. Download and clear buttons after results table |
| Answer quality calculator, answer quality metrics guide | Single grid div, no fieldset, no legend | Label for every field, no help text, status text below fields | Note that star means required, star on workspace and required counts, no screen reader required text | No submit. Rates update on input. Download and clear buttons after results table |
| Embed builder, widget page | Single grid div, no fieldset, no legend | Label for every field, help text below every field | Note that star means required, star on endpoint only, other fields optional with no marker | No submit. Copy snippet, copy share link, and copy steps buttons after results |
| Follow a question form, my followed questions page | Fieldset with legend for the question followed | Legend, label, help text below every field | Note at top, star and screen reader required text on title, required and aria required on title | Button row after fieldset, follow question primary first. Status text sits outside the form. Move the status into the form actions block on the next change |
| Question draft form and answer pack entry form, offline page | Bare field list in each card, no fieldset, no legend | Label for every field, help text on workspace and title fields only | Star on pack entry title only, no required note on draft form | Button row inside each form, save primary first, copy and clear secondary |
| Filter forms on my answers, saved essentials, print answers, offline pack, and terminology page | Grid divs for filters, no fieldset, no legend. Terminology filter is generated by script in a card | Label for every filter, help text on search filters, count text below filters | No required fields. No star and no required note | No submit. Clear search and filters button below filters, list updates on input |
| Sample question on try a sample page | Bare label and input in a card, no fieldset, no legend | Label above input, help text below input | No required marker. Empty question is handled in script | No submit. Ask sample primary button beside starter buttons |
| Ask a question, signed-in app Ask screen | Not present as a screen file in this site pack slice. Described in Ask and check sources and in Test answers guides. Apply the groups in the signed-in section below when the screen is built or changed | Use legend for scope, label for the question field, help text directly below the question field naming the assistant and the college workspace, error text directly below help and linked to the field. Do not invent field names from this page | Required note at top of the form, star and screen reader required text on the question field only where the app requires it, required attribute and aria required in the app form. No marker on optional fields | One form actions block after the last group. Primary ask action first, secondary actions after it in the same block, note directly below the actions block, status and confirmation below the note. No second submit |
| Submit an answer, staff draft reply, and save to My Answers, signed-in app Ask screen | Not present as a screen file in this site pack slice. Described in Ask and check sources guide. Apply the groups in the signed-in section below when the screen is built or changed | Legend for content, legend for source, label above each field, help text directly below the field, error text directly below help and linked to the field. Draft actions are labeled by result, such as Write a first draft, Make it plain, or Translate to Spanish, and the person edits before saving | Required note at top, star and screen reader required text on every field the app requires, required attribute and aria required in the app form. Optional source and collection fields show no star | One form actions block after the last group. Primary save action first, secondary actions after it in the same block, note directly below the actions block. A draft never sends or saves as a sourced answer until a person edits and saves it |
| Workspace, role, retention, and handoff office settings, signed-in app Team and Governance screens | Not present as a screen file in this site pack slice. Described in Get started, Set retention and access, and Configuration and safe defaults pages. Apply the groups in the signed-in section below when the screen is built or changed | Legend for scope, legend for settings, label above each field, help text directly below the field naming the college workspace shown at the top of the app, error text directly below help and linked to the field. Do not invent field names from this page | Required note at top, star and screen reader required text on every setting the app requires before publishing, required attribute and aria required in the app form. Optional settings show no star | One form actions block after the last group. Primary save action first, secondary actions after it in the same block, note directly below the actions block, confirmation below the note naming the college, each choice, and the mute or pause choice where it applies |
| Sign-in, workspace creation, and role or member invitation forms | Not present in the site pack. Sign-in is through MAJIC at the app address. There is no create workspace step in the app. The first signed-in person is college administrator only | No site label to inventory. Do not invent field names from this page | No site required marker to inventory | No site submit to inventory. When these app forms are built, apply the unified layout below and no other layout |
Field names, limits, and validation stay exactly as shipped on each page and in each app screen. This layout changes grouping, label order, required indication, validation placement, and submit placement only. It does not add, remove, or rename a field.
Unified desktop layout, in order
Apply these rules in order on desktop. The same order stacks to one column on a phone through existing responsive rules.
Container and required note first
Keep the form inside one form card. Put one required note as the first line inside the form. The note states that fields marked with a star are required and that optional fields have no marker.
Group with fieldset and legend
Use one fieldset per group, with one legend per fieldset, in this order where the form holds those fields: contact and scope, content, source, and where it lives. A form with two or fewer related fields may use one fieldset. A filter form with no required field may use a fieldset with legend Filters instead of a grid div.
Label hierarchy inside every group
Legend names the group. Label names the field and sits directly above the field. Help text sits directly below the field. Error text sits directly below help text and is linked to the field. The order is legend, label, field, help, error. No label appears after its field.
Required indication on every required field
Required fields show a star in the label, screen reader required text after the star, the required attribute, and aria required. Optional fields show no star and no required text. The required note at the top uses the same star. Do not use a star for an optional field and do not omit the star for a required field.
Desktop field grid inside groups
Short paired fields, such as workspace and assistant, start and end dates, or two short counts, sit side by side in one row on desktop with a gap of 16 pixels and a minimum column width of 200 pixels. Long fields, text areas, and source link fields span the full width of the group. Group padding and group margin stay the same for every form.
Primary submit placement last
Put one form actions block after the last fieldset and after any hidden honeypot field. The primary submit button is first in that block, with a minimum height of 48 pixels. Secondary actions follow the primary button in the same block. One form note sits directly below the actions block. Status, confirmation, and error summary text sit below the actions block and are not placed between fields.
Calculators and filters, no submit forms
Forms with no submit, such as calculators, embed builders, and filters, keep the same grouping, label hierarchy, and required indication above. Their action buttons sit in one button row after the results or after the filters, with download first and clear second. No submit button is added to these forms.
What stays unchanged
- Field names, field order inside a group, limits, and validation messages on each page
- One primary action per form, and no second submit added to a calculator or filter
- Draft saving, retry with the same request reference, and confirmation behavior on request forms
- Keyboard order, visible focus, and 44 pixel minimum target on every control
What changes on the forms listed above
- Add fieldset and legend to bare field lists on offline, reports, answer quality, and embed builder
- Add the required note, screen reader required text, required and aria required where only a star is shown today, including my answers title and collection name
- Move save, follow, and save entry actions into the same form actions block used on request demo, with status below that block
- Keep calculator and filter actions after results, with the same grouping and labels as submit forms
Signed-in app forms, same order, no backend change
The signed-in app screens for Ask, staff draft reply, and workspace settings are not screen files in this site pack slice. The inventory rows above name those forms from the guides already in the pack. When a screen is built or changed in the app, apply this section in the same order as the public layout above. Backend validation, field names, limits, and permission checks stay exactly as shipped in the app.
Group Ask a question as scope, then content
Use one fieldset with legend Contact and scope for college workspace, assistant, and channel where the screen shows them, in that order. Use one fieldset with legend Content for the question field. Workspace and assistant are short paired fields in one desktop row. The question field spans the full width of its group.
Group submit an answer as content, source, and where it lives
Use one fieldset with legend Content for question and answer text, one fieldset with legend Source for source title, source link, and last checked date, and one fieldset with legend Where it lives for collection and handoff office where the screen shows them. Source link spans the full width of its group. Draft actions stay labeled by result and the person edits before saving.
Group workspace and profile settings as scope, then settings
Use one fieldset with legend Contact and scope for the college workspace shown at the top of the app, then one fieldset with legend Settings for role, retention or session-only mode, navigation permission, and handoff office in the order the app shows them. Short paired settings sit in one desktop row. Long text areas span the full width.
Keep label, help, and error order on every app form
Legend names the group, label sits directly above the field, help text sits directly below the field and names the college workspace and assistant where they apply, and error text sits directly below help and is linked to the field. No help text is placed above a label and no error text is placed between fields.
Keep required indication and primary placement on every app form
Required note first, star and screen reader required text on every required field, no marker on optional fields, and one form actions block after the last group with the primary save or ask action first, secondary actions after it, one note directly below the actions block, and status or confirmation below the note. No second submit is added.
This section adds no field, renames no field, and changes no validation rule in the signed-in app. It only fixes grouping, label and required-field presentation, helper text placement, and primary action placement so the app forms match the public forms in this pack.
Corrected template, ready to copy
Copy the submit form template for a form with a submit button. Copy the filter and calculator template for a form with no submit button. Replace only the group names, field names, help text, and button text that already exist on that page. Do not add a field, rename a field, or change a limit.
Submit form template
<form id="example-form" novalidate>
<p class="form-note form-required-note">Fields marked <span class="req" aria-hidden="true">*</span> are required.</p>
<fieldset class="form-group">
<legend>Group name</legend>
<div class="field">
<label for="example-name">Field name <span class="req" aria-hidden="true">*</span><span class="sr-only">(required)</span></label>
<input id="example-name" name="name" required aria-required="true" maxlength="120" aria-describedby="example-name-help">
<p id="example-name-help" class="field-help">Help text for this field.</p>
<!-- Error text, created by the page script on validation failure, sits here:
<p id="example-name-error" class="field-error">Error text.</p>
The field gets aria-invalid="true" and the error id is added to aria-describedby. -->
</div>
<div class="form-grid-2">
<div class="field">
<label for="example-workspace">College workspace</label>
<input id="example-workspace" name="workspace" maxlength="120" aria-describedby="example-workspace-help">
<p id="example-workspace-help" class="field-help">Help text for this field.</p>
</div>
<div class="field">
<label for="example-assistant">Assistant</label>
<input id="example-assistant" name="assistant" maxlength="120" aria-describedby="example-assistant-help">
<p id="example-assistant-help" class="field-help">Help text for this field.</p>
</div>
</div>
</fieldset>
<input class="hp" name="website" tabindex="-1" autocomplete="off" aria-hidden="true">
<div class="form-actions">
<button class="button primary" type="submit">Primary action</button>
<button class="button" type="button">Secondary action</button>
<p class="form-note">One note below the actions block.</p>
</div>
<p class="form-note" id="example-form-status" role="status" aria-live="polite"></p>
</form>
Filter and calculator template, no submit button
<form novalidate>
<p class="form-note form-required-note">Fields marked <span class="req" aria-hidden="true">*</span> are required.</p>
<fieldset class="form-group">
<legend>Filters</legend>
<div class="form-grid-2">
<div class="field">
<label for="example-search">Search</label>
<input id="example-search" type="search" aria-describedby="example-search-help">
<p id="example-search-help" class="field-help">Help text for this filter.</p>
</div>
<div class="field">
<label for="example-collection">Collection</label>
<select id="example-collection"><option value="all">All collections</option></select>
</div>
</div>
</fieldset>
<div class="form-actions">
<button class="button" type="button">Clear search and filters</button>
</div>
<p class="form-note" role="status" aria-live="polite">Showing 0 of 0 entries</p>
</form>
Validation placement, for every form: error text sits directly below help text for that field, has an id formed from the field id plus -error, is added to that field aria-describedby, the field gets aria-invalid true, and a summary that names the count of fields needing attention sits below the form actions block and receives focus. Do not place a status, summary, or confirmation between fields. The request demo page script already does this. A form script that only sets a status above the form does not meet this template.
Per-form migration checklist
Apply each row in order. Keep field names, limits, and validation messages exactly as shipped.
| Form | Exact change | Keep unchanged |
|---|---|---|
| My answers, save an answer | Add the required note as the first line in the form. Add screen reader required text, required, and aria required to title. Wrap workspace and assistant in form-grid-2. Replace the btns row with form-actions, primary save first, and move ma-status below that block. | Field names, limits, draft saving, and duplicate check in the page script |
| My answers, add collection | Add the required note, wrap the single field in one fieldset with legend Collection, add screen reader required text, required, and aria required to the name field, and replace the btns row with form-actions. | Field name, limit, and rename and delete behaviour in the collection list |
| My followed questions | Replace the btns row with form-actions, primary follow question first, and move mf-form-status below that block. The fieldset, required note, sr-only, required, and aria required are already in place. | Field names, limits, draft saving in session storage, and duplicate check |
| Offline, question draft and answer pack entry | Add the required note to both forms. Wrap each bare field list in one fieldset with a legend. Add screen reader required text, required, and aria required to pack entry title. Wrap workspace and assistant in form-grid-2. Replace each btns row with form-actions, primary save first. | Field names, limits, local storage keys, draft saving, and import behaviour |
| Reports workspace dashboard, answer insight trend, and answer quality calculators | Wrap scope and date fields and count fields in fieldsets with legends, in the order scope, dates, counts. Add screen reader required text to every required count and scope field. Keep the status text below the fields and the download and clear actions after the results table in one form-actions row. | No submit button, field names, limits, rate arithmetic, CSV columns, and clear behaviour |
| Widget embed builder | Wrap the grid div in one fieldset with legend Embed builder. Add screen reader required text, required, and aria required to the endpoint field, the only required field. Keep copy actions after the results in one form-actions row. | No submit button, field names, help text, and copy behaviour |
| Try a sample, sample question | Wrap the label and input in one fieldset with legend Sample question. Keep help text below the input and the ask sample primary button in one form-actions row after the fieldset. | No submit button, starter buttons, and empty question handling in the page script |
| Filters on my answers, saved essentials, print answers, offline pack, and terminology | Wrap each grid div in one fieldset with legend Filters, or keep the terminology script card and give it the same legend. Keep labels above fields, help below search fields, count text below filters, and clear actions in one form-actions row below the filters. | No required fields, no submit button, debounce, URL parameters, and list behaviour |
| Sign-in, workspace, and invitation forms in the signed-in app, when built | Use the submit form template above and no other layout. Add the required note, fieldsets in the order contact and scope, content, source, and where it lives, form-grid-2 for paired short fields, and form-actions last. | No field name is taken from this page. Use only names the app ships. |
CSS is in site.css, do not paste again
The block below is already at the end of public site.css. It is shown here for reading only. Do not paste it into a page. Remove the matching inline style block from a page when you apply the template to that page, so the page uses the site.css copy only.
/* Unified desktop form layout. Group, label, required, and submit order. */
.form-card form > .form-required-note { margin: 0 0 20px; }
.form-group, .ma-form-group, .ml-form-group { border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 6px; margin: 0 0 24px; min-width: 0; max-width: 100%; }
.form-group legend, .ma-form-group legend, .ml-form-group legend { font-weight: 700; padding: 0 8px; max-width: 100%; }
.form-group .field, .ma-form-group .field, .ml-form-group .field { margin: 0 0 20px; }
.field { margin: 0 0 20px; }
.form-card .field label { display: block; font-weight: 600; margin: 0 0 6px; }
.field-help { color: var(--muted); font-size: .92rem; margin: 4px 0 0; }
.field-error { color: #B42318; font-size: .9rem; margin: 6px 0 0; }
.req { color: #B42318; font-weight: 700; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.form-required-note { margin: 0 0 20px; }
.form-grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.form-actions { display: grid; gap: 10px; margin-top: 4px; }
.form-actions .button.primary { min-height: 48px; justify-content: center; }
.form-actions .button { justify-content: center; }
.form-actions .form-note { margin: 0; }
@media (max-width: 600px) { .form-group, .ma-form-group, .ml-form-group { padding: 14px 12px 4px; } }
Reference pattern and checks before you ship
The request demo form already follows this layout. Use it as the reference when you change another form.
- Required note at top, fieldsets in order, label above field, help below field, error below help
- Star and screen reader required text on every required field, no marker on optional fields
- Paired short fields in one desktop row, long fields full width, same group padding on every form
- Primary submit first in the form actions block after the last group, note below actions, status below note
- No new field, no renamed field, no changed limit, and no second submit on calculators and filters
- Sign-in, workspace, and invitation forms, when built in the app, use this same order and no other order
- Keyboard order reaches legend groups in page order, focus stays visible, and every control is at least 44 pixels
Apply one layout to the next form you change
Start with grouping and required indication, then move the primary action into the form actions block. Keep field names and validation as shipped.