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
Copy file name to clipboardExpand all lines: _posts/2025-08-16-accessible-error-messages-in-forms.md
+16-16Lines changed: 16 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,12 +9,12 @@ excerpt: "When you put care into preventing errors and clearly indicating when s
9
9
date: 2025-08-16
10
10
---
11
11
12
-
When you put care into preventing errors and clearly indicating when something goes wrong, users are much more likely to successfully submit a form.
13
-
{: .lead }
12
+
## Summary
14
13
15
-
In this post, we’ll walk step-by-step through how to prevent errors, indicate them clearly, and offer help with error messages in forms for different types of users.
14
+
{: .lead }
15
+
When you put care into preventing errors and clearly indicating when something goes wrong, users are much more likely to successfully submit a form. In this post, we’ll walk step-by-step through how to prevent errors, indicate them clearly, and offer help with error messages in forms for different types of users.
16
16
17
-
When designing a form, ask yourself the following questions:
17
+
## When designing a form, ask yourself the following questions
18
18
19
19
* What do I really need to know?
20
20
* How will I ask for this information?
@@ -28,7 +28,7 @@ When designing a form, ask yourself the following questions:
28
28
29
29
No one enjoys filling out forms, and all the help you can give is useful. Keep that goal in mind. You want to learn something from your user, or your user wants to tell you something. Make that process as easy as possible.
30
30
31
-
## What do I really need to know?
31
+
###What do I really need to know?
32
32
33
33
Handling errors starts with the questions you ask. Some questions are difficult to answer. Is it really essential to know whether someone is male or female? Do you only want to contact them by phone? What if a user's answer to a question isn't an available option, or they don't want to answer a question? They may just give up.
34
34
@@ -40,7 +40,7 @@ Be clear about why you need sensitive personal information, such as an identific
40
40
In the Netherlands there are strict rules about [when to ask for a citizen service number](https://www.rijksoverheid.nl/onderwerpen/privacy-en-persoonsgegevens/vraag-en-antwoord/welke-organisaties-mogen-mijn-burgerservicenummer-bsn-gebruiken#:~:text=Alle%20overheidsorganisaties%20mogen%20gebruik%20maken%20van%20uw%20burgerservicenummer%20(BSN)). Canada has similar rules governing [how you can request Personally Identifying Information (PII)](https://www.priv.gc.ca/en/privacy-topics/privacy-laws-in-canada/the-personal-information-protection-and-electronic-documents-act-pipeda/p_principle/).
41
41
42
42
43
-
## How will I ask for this information?
43
+
###How will I ask for this information?
44
44
45
45
The input mechanism you use to ask for information has a profound impact on your users. Should you design new custom input fields or use recognizable, familiar patterns? Please don’t reinvent the web for something as essential as form fields. As Heydon Pickering explains in his talk [Get Your Priorities Straight](https://www.youtube.com/watch?v=ediHVy0869c): “Real people aren't looking to be delighted. People want to get the task done and get on with their lives".
46
46
@@ -59,7 +59,7 @@ Don't force the user to enter information (like an email address) more than once
59
59
{: .callout .info }
60
60
This success criterion was added in [WCAG 2.2: 3.3.7 Redundant Entry](https://www.w3.org/WAI/WCAG22/Understanding/redundant-entry.html).
61
61
62
-
## What information can I provide in advance to help the user?
62
+
###What information can I provide in advance to help the user?
63
63
64
64
We’ve all been there: you enter a new password, click submit, and *then* you’re told what the password requirements are. You yell at the screen: “Why didn't you tell me that before?”.
65
65
@@ -68,19 +68,19 @@ The blog post [*Blind people don't visit my website*](https://www.a11y-collectiv
68
68
69
69
Don’t make users guess — offer clear help in plain language, at the right moment. Tell users in advance which documents they'll need, and which fields are or aren't required. Add descriptions to fields where necessary.
70
70
71
-
## How do I show which fields are required?
71
+
###How do I show which fields are required?
72
72
73
73
If you only ask what's really needed, all fields could technically be required — but that’s not always the case. Different types of forms have different needs. For example, if you're creating content in the admin of a website, all of the content fields you might use need to be available; but most of them won't be required.
74
74
75
-
### What’s the best way to indicate required?
75
+
####What’s the best way to indicate required?
76
76
77
77
Many websites use indicators like “required”, “optional”, or an asterisk (\*). But which is clearest?
78
78
79
79
Do user research for your language. For example in Dutch the word "optioneel" (optional) is hard to understand for people with low literacy, and "niet verplicht" (not required) is a better choice. This may be different for your language.
80
80
81
81
Prefer **“required”** over an asterisk, because an asterisk assumes prior knowledge of the meaning of that icon. If you do use an asterisk, explain its meaning above the form.
82
82
83
-
### Should I mark required or non-required fields?
83
+
####Should I mark required or non-required fields?
84
84
85
85
Which is better? Indicate required or non-required fields? It depends. Your choice should be based on the form’s function, your CMS or plugin, and user research.
86
86
@@ -93,7 +93,7 @@ For example: "Please complete all fields. If a field is not required, it will be
93
93
94
94
Whatever you choose, be consistent within the form and across all forms on your website. Inform users above the form how field requirements are indicated.
95
95
96
-
## When should I check for errors?
96
+
###When should I check for errors?
97
97
98
98
Websites commonly check for errors while typing, after the focus moves out of a field, or after the form is submitted. Which approach is most user-friendly?
99
99
@@ -104,7 +104,7 @@ That leaves two options: check after leaving a field, or after submission. These
104
104
{: .callout .warning }
105
105
HTML5 form validation is not accessible at this moment (in 2025). The W3C summarizes the options in [Validating Input ](https://www.w3.org/WAI/tutorials/forms/validation/). "If your web browser supports HTML5, it will not allow you to submit the form without entering text into the input field. Instead, it will display a message that is generated by the web browser itself". Write custom error messages and provide server side generated error messages. The W3C explains the options in [Validating Input ](https://www.w3.org/WAI/tutorials/forms/validation/).
106
106
107
-
## How do I indicate that an answer is incomplete or filled out incorrectly?
107
+
###How do I indicate that an answer is incomplete or filled out incorrectly?
108
108
109
109
Use more than color alone to indicate errors. A user with visual impairments or color blindness may not notice a red outline. Color is helpful but always include an error message in text too.
110
110
@@ -113,7 +113,7 @@ Use more than color alone to indicate errors. A user with visual impairments or
113
113
* Write out the error in text above the form field.
114
114
* Add a summary of all errors above the form to help the user quickly see what needs to be corrected.
115
115
116
-
## What makes a helpful error message?
116
+
###What makes a helpful error message?
117
117
118
118
Messages like “This field is required” or “Invalid value” don’t offer much help. Write clear error messages that explain what’s missing or needs changing.
119
119
@@ -124,7 +124,7 @@ Messages like “This field is required” or “Invalid value” don’t offer
124
124
125
125
This is far more helpful than a generic message.
126
126
127
-
## How do I confirm a form was successfully submitted?
127
+
###How do I confirm a form was successfully submitted?
128
128
129
129
You click "Send" and… nothing happens. Or you're redirected to the homepage. Was the form actually sent? How do you know?
130
130
@@ -134,7 +134,7 @@ Give users clear confirmation that their form has been submitted and what will h
134
134
A confirmation text could be:
135
135
Thank you for your registration for our workshop "Knitting socks". A confirmation email has been sent to [email protected] with the time and location of the workshop. If you haven't received an email? [Please contact us](#).
136
136
137
-
## How can I offer help if a user gets stuck?
137
+
###How can I offer help if a user gets stuck?
138
138
139
139
If a user gets stuck filling out a complex form, they need to be able to easily request help.
140
140
@@ -146,7 +146,7 @@ Always offer multiple ways to get in touch on your contact page — not everyone
146
146
A help text could be:
147
147
Do you need help filling out this form or do you have questions? [Please contact us](#).
148
148
149
-
## Summary
149
+
## Conclusion
150
150
151
151
Help your users as much as possible when filling out a form. Don't ask unnecessary questions just to collect for your statistics. Use standard input form fields wherever possible. Make it clear what is required and how to fill out a field. Use clear, timely error messages. And make sure it’s easy to ask for help when needed.
Copy file name to clipboardExpand all lines: _posts/2025-08-27-offer-multiple-ways-to-contact-you.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,10 +8,11 @@ parent: Blog
8
8
excerpt: "It’s better to offer multiple ways to get in touch, so people can choose what suits them. Think about your visitors first, not just what’s easiest for you."
9
9
date: 2025-08-27
10
10
---
11
-
You want to reach out to customer service, and they say *“Send us a WhatsApp message.”* What if you don’t use WhatsApp, or cannot make a phone call, or use the chatbox?
12
-
{: .callout .lead }
13
-
By offering multiple contact options, you make sure every customer has a way to connect.
14
-
{: .callout .lead }
11
+
12
+
## Summary
13
+
14
+
{: .lead }
15
+
You want to reach out to customer service, and they say *“Send us a WhatsApp message.”* What if you don’t use WhatsApp, or cannot make a phone call, or use the chatbox? By offering multiple contact options, you make sure every customer has a way to connect.
Copy file name to clipboardExpand all lines: docs/contribute/github/content-kitchen-sink.md
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,8 +7,7 @@ has_video: true
7
7
8
8
# Kitchen sink: options available for content
9
9
10
-
{: .lead }
11
-
This page lists the options and code available for creating content in this documentation
10
+
This page lists the options and code available for creating content in this documentation.
12
11
13
12
{: .callout .info }
14
13
WordPress.org provides a lot of style guides for documentation: [WordPress Style Guides - highlights](https://make.wordpress.org/docs/style-guide/welcome/highlights/). We value most of all: be [kind and professional](docs/contribute/CODE_OF_CONDUCT.md) in your text and please write the text yourself or make sure the reader knows who you are citing.
@@ -36,17 +35,20 @@ In blog posts the H1 is added by the template: [Add a blog post]({{site.baseurl}
36
35
37
36
## Summary in a larger text font.
38
37
39
-
Start the paragraph with the code `{: .lead }`.
38
+
Start the paragraph with an H2 named "Summaty, or introduction and the callout {: .lead }`
39
+
40
40
41
41
```markdown
42
+
## Summary
43
+
42
44
{: .lead }
43
45
When you put care into preventing errors and clearly indicating when something goes wrong, users are much more likely to successfully submit a form.
44
46
```
47
+
## Summary
45
48
46
49
{: .lead }
47
50
When you put care into preventing errors and clearly indicating when something goes wrong, users are much more likely to successfully submit a form.
0 commit comments