WordPress
patterns/contact-form-static.php
✔ Custom
- Use: a dedicated contact page where the form is the content, and longer forms.
- Not inside a wider page that explains the contact, which belongs in the two-column variant.
- Source: the project’s form plugin; heading and intro entered by hand.
- Content: a heading and an optional intro that says what happens with the message; the fields come from your form plugin and replace the demo fields.
patterns/contact-form-two-columns-static.php
✔ Custom
- Use: a shorter contact form inside a wider page, with an explanation that should stay next to it.
- Not for long forms or a dedicated contact page, which belong in the single-column variant, and not on narrow templates.
- Source: the project’s form plugin; heading and intro entered by hand.
- Content: a heading and an optional intro that says what happens with the message; a short form from your form plugin, which replaces the demo fields.
Figma
Docs
- Label all fields clearly and do not hide the label during input (WCAG SC 3.3.2)
- Mark required fields, or indicate whether all fields are required or optional.
- Prevent invalid input upfront, for example by disabling form submission when input is invalid or by validating fields in real time. When errors do occur, provide helpful error messages – ideally in direct context of the invalid field – that help users correct the mistake (WCAG SC 3.3.3)
- Avoid captchas and puzzle challenges, as these are in the vast majority of cases a barrier to accessible use (WCAG SC 1.1.1 + SC 3.3.8). Alternatives include background checks that require no user interaction. Integrating third-party services for validation or security may have data privacy implications.
