Skip to content

Missing empty email address validation #1341

@danacotoran

Description

@danacotoran

When a user clicks the 'No' button on "Is this page useful?" they get an offer to be emailed a link to the survey.

Screenshot 2021-11-26 at 11 01 14

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.

Screenshot 2021-11-26 at 11 02 36

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.


Zendesk ticket where this was reported originally https://govuk.zendesk.com/agent/tickets/4786005

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions