Give suggestions to fix errors
When users make an error, offer suggestions on how to correct it to help them resolve issues quickly.
Acceptance Criteria
• When an error is detected, provide specific suggestions on how to fix the issue.
• Suggestions should be clear, actionable, and relevant to the error encountered.
• Avoid providing suggestions if it compromises security or the purpose of the content.
Examples
• If a user enters a phone number without the correct format (e.g., “045678901” instead of “+3245 67 89 01”), display a message saying, “Please enter your phone number in the format +3245 67 89 01.”
• If a user submits a date that is in the future when only past or current dates are valid, show a message like, “The date you entered is in the future. Please enter a valid date.”
• If a required field is left empty, provide a prompt such as, “This field is required. Please enter the missing information.”
Exceptions
• If providing a suggestion would compromise the security of the content or system (e.g., revealing system-specific details that could be exploited).
Tips
• Use plain language in suggestions to make them easy to understand.
• Provide examples or links to further guidance if needed.
• Ensure suggestions are contextually appropriate and address the specific error.
How to test?
• Test various types of errors to ensure that relevant and helpful suggestions are provided.
• Verify that suggestions are clear and actionable.
• Ensure that no sensitive information is exposed through error messages or suggestions.