Forms allow organisations to ask questions of their customers. In turn, customers can submit information in response to these questions.
Online forms are based on traditional paper forms and as such are typically well understood by customers. Forms can be simple with a few simple inputs or more complex, requiring pages of information.
More complex forms are first split into logical “chunks’ called fieldsets and if required, multiple pages or screens.
Form inputs are split into two key types:
Free text inputs are used to input a single line of free text, with textareas used for multiple lines of free text.
Selections allow customers to select an option from a predefined list of available options. Selections may be single-select or multi-select. Use radio button lists, dropdowns and combo boxes for single selections and checkboxes for multi-selections.
Guidance
Implement forms vertically, in one column (with the exception of related short fields, such as state and postcode).
Order your forms in a way which makes sense to your customers, with the most important information first.
Simplify your forms by breaking them in to logical steps, using fieldsets and/or separate screens. If using separate screens, clearly show the user know how many screens there are and what screen they are on.
Use progressive disclosure to reveal inputs only when needed, to further simplify your forms.
Only ask for information which is absolutely necessary.
Use clear, simple and consistent labels and fieldset legends
Use sentence case for legends, labels, help text and validation.
Use an appropriate field width
If you need to include mandatory form elements, mark them accordingly.
If the majority of the form elements are mandatory, mark the optional ones.
Where possible, use smart defaults to facilitate completion.
Always validate your form on submission.
Always provide your users with enough context to avoid and fix errors.
Don’t use place holder or hint text, use the help text provided instead.
Only use help text when needed and it helps reduce cognitive load.
The defined form widths can be found within Sizing.