You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -166,7 +167,7 @@ Before designing a form you should:
166
167
<UnorderedList>
167
168
<ListItem>Don't ask for the same information twice in the same session. Reference: <Anchorhref="https://www.w3.org/WAI/WCAG22/Understanding/redundant-entry">WCAG</Anchor></ListItem>
168
169
<ListItem>Provide accessible error identification and messaging. Reference: <Anchorhref="https://www.w3.org/WAI/WCAG22/Understanding/error-identification">WCAG</Anchor></ListItem>
169
-
<ListItem>Group related fields using fieldsets and legends with `FormSection` and `FormSectionHeading` from the <Anchorhref="/components/form">Form layout component</Anchor>, which render an HTML fieldset and legend. Reference: <Anchorhref="https://webaim.org/techniques/forms/controls">WebAIM</Anchor></ListItem>
170
+
<ListItem>Group related fields using fieldsets and legends with <InlineCode>FormSection</InlineCode> and <InlineCode>FormSectionHeading</InlineCode> from the <Anchorhref="/components/form-layout">Form layout component</Anchor>, which render an HTML fieldset and legend. Reference: <Anchorhref="https://webaim.org/techniques/forms/controls">WebAIM</Anchor></ListItem>
170
171
<ListItem>The order in which form elements are presented on a webpage should be logical and meaningful. Reference: <Anchorhref="https://www.w3.org/WAI/WCAG22/Understanding/meaningful-sequence.html">WCAG</Anchor></ListItem>
171
172
</UnorderedList>
172
173
@@ -184,7 +185,7 @@ The different parts of a form are:
184
185
185
186
<UnorderedList>
186
187
<ListItem>
187
-
<strong><Anchorhref="/components/form">Form layout component</Anchor></strong>: A wrapper layout component that sets layout and spacing between form elements.
188
+
<strong><Anchorhref="/components/form-layout">Form layout component</Anchor></strong>: A wrapper layout component that sets layout and spacing between form elements.
188
189
</ListItem>
189
190
<ListItem>
190
191
<strong>Form element</strong>: Any UI component in a form. Examples: <Anchorhref="/components/input">Input</Anchor>, <Anchorhref="/components/button">Button</Anchor>, <Anchorhref="/components/callout">Callout</Anchor>.
@@ -214,7 +215,7 @@ The different parts of a form are:
<Td>Arranges a layout of form elements with preset spacing.</Td>
219
220
</Tr>
220
221
<TrverticalAlign="top">
@@ -382,7 +383,7 @@ Use single-step forms for:
382
383
Tasks that users can complete in one go without interruptions or needing external references.
383
384
</ListItem>
384
385
<ListItem>
385
-
Low cognitive load forms that require a maximum of 8 fields. For longer forms, use a <Anchorhref="https://docs.google.com/document/d/1sYcP_i_YTwYWWdjKDQfkIdMj1NqyZV5c_8k4BxrEYc0/edit?pli=1&tab=t.0#heading=h.yi4naptd6s8d">Multi-step</Anchor> form or for settings, use the <Anchorhref="/page-templates/settings">Settings</Anchor> template and divide the fields with In Page Navigation or Tabs.
386
+
Low cognitive load forms that require a maximum of 8 fields. For longer forms, use a <Anchorhref="#multi-step-forms">Multi-step</Anchor> form or for settings, use the <Anchorhref="/page-templates/settings">Settings</Anchor> template and divide the fields with In Page Navigation or Tabs.
386
387
</ListItem>
387
388
</UnorderedList>
388
389
@@ -659,7 +660,7 @@ Inline forms use our [Popover](/components/popover) component. Use Inline forms
659
660
## Composition
660
661
661
662
Designing a good form requires making decisions about composition, sequence, form elements, copy, and feedback.
662
-
Use the [Form layout component](/components/form) to arrange a layout of form elements with preset spacing.
663
+
Use the [Form layout component](/components/form-layout) to arrange a layout of form elements with preset spacing.
663
664
664
665
### Number of form elements
665
666
@@ -705,7 +706,7 @@ When ordering your form, place fields in a logical order from a user’s perspec
705
706
706
707
#### Organization: When to break into sections or new pages
707
708
708
-
After determining the number of form fields, decide how to group them into sections, using `FormSection` from the [Form layout component](/components/form). If a form naturally breaks down into short sections, a [single step form](https://docs.google.com/document/d/1sYcP_i_YTwYWWdjKDQfkIdMj1NqyZV5c_8k4BxrEYc0/edit?pli=1&tab=t.0#heading=h.3vpocpbk0gl7) is likely to be a good way to organize the form. When a form becomes long and has more than 8 questions that are only related by a few topics, [multi-step form](https://docs.google.com/document/d/1sYcP_i_YTwYWWdjKDQfkIdMj1NqyZV5c_8k4BxrEYc0/edit?pli=1&tab=t.0#heading=h.yi4naptd6s8d) would be a better way to organize the form.
709
+
After determining the number of form fields, decide how to group them into sections, using `FormSection` from the [Form layout component](/components/form-layout). If a form naturally breaks down into short sections, a [single step form](#single-step-or-page-forms) is likely to be a good way to organize the form. When a form becomes long and has more than 8 questions that are only related by a few topics, [multi-step form](#multi-step-forms) would be a better way to organize the form.
709
710
710
711
### Form field composition
711
712
@@ -818,10 +819,10 @@ The primary Button placement depends on the form type:
818
819
819
820
<UnorderedList>
820
821
<ListItem>
821
-
For <Anchorhref="https://docs.google.com/document/d/1sYcP_i_YTwYWWdjKDQfkIdMj1NqyZV5c_8k4BxrEYc0/edit?pli=1&tab=t.0#heading=h.3vpocpbk0gl7">Single Step Forms</Anchor>, <Anchorhref="/components/side-modal">Side Modals</Anchor>, <Anchorhref="/components/side-panel">Side Panels</Anchor>, <Anchorhref="/components/minimizable-dialog">Minimizable Dialogs</Anchor> and <Anchorhref="https://docs.google.com/document/d/1sYcP_i_YTwYWWdjKDQfkIdMj1NqyZV5c_8k4BxrEYc0/edit?pli=1&tab=t.0#heading=h.7xhk5supgjav">Popover</Anchor> forms, keep the primary button left-aligned, and placed before secondary buttons for better scannability of the content and its related actions.
822
+
For <Anchorhref="#single-step-or-page-forms">Single Step Forms</Anchor>, <Anchorhref="/components/side-modal">Side Modals</Anchor>, <Anchorhref="/components/side-panel">Side Panels</Anchor>, <Anchorhref="/components/minimizable-dialog">Minimizable Dialogs</Anchor> and <Anchorhref="#inline-forms">Popover</Anchor> forms, keep the primary button left-aligned, and placed before secondary buttons for better scannability of the content and its related actions.
822
823
</ListItem>
823
824
<ListItem>
824
-
For <Anchorhref="https://docs.google.com/document/d/1sYcP_i_YTwYWWdjKDQfkIdMj1NqyZV5c_8k4BxrEYc0/edit?pli=1&tab=t.0#heading=h.yi4naptd6s8d">Multi-step Forms</Anchor> and <Anchorhref="/page-templates/wizard">Wizards</Anchor>, keep the primary button right-aligned, placed after secondary buttons to indicate the direction of the form. Refer to our <Anchorhref="/page-templates/wizard#actions-footer">Wizards action footer</Anchor> guidelines for additional guidance.
825
+
For <Anchorhref="#multi-step-forms">Multi-step Forms</Anchor> and <Anchorhref="/page-templates/wizard">Wizards</Anchor>, keep the primary button right-aligned, placed after secondary buttons to indicate the direction of the form. Refer to our <Anchorhref="/page-templates/wizard#actions-footer">Wizards action footer</Anchor> guidelines for additional guidance.
0 commit comments