Pattern Library
We have identified a few patterns associated with forms. The full interaction cycle is considered as well, including successful form submission and submission of form with errors for users’ amendment.
Primary page content
The next interaction pattern includes all elements that can be used when users are required to fill in a form to access a particular service. The form is therefore grouped within the category of prompts to action (CTAs) which makes use of the dynamic insets and, in the same way, it is accompanied by a specific icon with yellow accent.
Particular form elements are included and can be used as needed, ranging from standard input fields to checkboxes, from radio buttons to text areas. Error messages are also considered.
Below we can see cases where a form also includes a data protection statement which is to be accompanied by the information icon, to differentiate it from user input areas.
The full cycle of interaction includes the feedback message of successful completion (grouped as information), and an inset for prompt to action with error summary for users’ amendment at the start of the form, also visible below.
The full user experience cycle of interaction through forms can include cases where users’ input is incomplete or needs amending. For these situations there’s an inset to prompt users to action indicating errors with summary of problem. This inset is displayed after users click to submit form.
There is a problem with your application. Please amend the following entries, correcting the errors below:
| Entry field | Error summary |
|---|---|
| Full name | Enter your full name. |
| Student number | The number of digits is incorrect. Please amend. |