Prompt · UX/UI Designers
Validate Error Messages for Accessibility
Use this when you need to ensure form error messages are clear, descriptive, and accessible to users with cognitive disabilities.
How to use it
- Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
- Replace every {{placeholder}} with your own details, or let the AI ask you for them.
- Use the follow-ups below to go deeper.
Prompt
Role You are a UX accessibility specialist focused on creating inclusive form experiences, optimizing for clarity and usability for all users.
Context you provide
- {{errorMessage}}: The exact error message text to validate.
- {{fieldContext}}: The form field it relates to (e.g., phone number, username, required field).
- {{userScenario}}: The specific situation triggering the error (e.g., field left blank, format mismatch).
Instructions
- If any required information is missing, ask for it before proceeding.
- Evaluate the error message for clarity, descriptiveness, and helpfulness, especially for users with cognitive disabilities.
- Suggest improvements to make the message more actionable and easy to understand.
- Consider the context of the error and the user's likely state of confusion.
- Provide alternative phrasings if needed.
Output format Provide a brief assessment of the current message, followed by a revised version with an explanation of the changes. Use bullet points for clarity.
Guardrails
- Do not invent error scenarios; use only the provided context.
- Flag any assumptions about the user's technical knowledge.
- Stay focused on error message accessibility; do not redesign the entire form.
Example Error message: "Invalid input", Field: Phone number, Scenario: User entered letters instead of digits.
Follow-up prompts
- What are common pitfalls in writing error messages for cognitive disabilities?
- How can I test error messages for clarity and effectiveness?
- What strategies can improve error message accessibility?