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
When a user clicks the 'No' button on "Is this page useful?" they get an offer to be emailed a link to the survey.
But if they leave the 'Email address' field empty and click the green 'Send me the survey' button, they don't get an error/hint, just a Thank you message.
On the frontend, the feedback component displays a success message only if status code 200 is returned, which seems to be what is happening when an empty email field is submitted. When server side validation for email address has failed, the response status code should probably be a 400 with an error message attached.
When a user clicks the 'No' button on "Is this page useful?" they get an offer to be emailed a link to the survey.
But if they leave the 'Email address' field empty and click the green 'Send me the survey' button, they don't get an error/hint, just a Thank you message.
On the frontend, the feedback component displays a success message only if status code
200
is returned, which seems to be what is happening when an empty email field is submitted. When server side validation for email address has failed, the response status code should probably be a400
with an error message attached.Zendesk ticket where this was reported originally https://govuk.zendesk.com/agent/tickets/4786005
The text was updated successfully, but these errors were encountered: