When submitting the donation or membership form, error messages may be displayed alongside the respective fields. These might be outside of users' viewports.
Acceptance Criteria
- If the form validation fails after clicking the submit button, the viewport is scrolled (not animated) to the top of the page.
- A summarizing box of error messages is displayed above the form.
- For each invalid value, the label of the field and the error message is displayed inside the box.
- Clicking the field name makes the viewport scroll (not animated) to the respective field.
Notes
Mockup:
https://www.figma.com/file/00Bi54030b4FkqmjafLk0Cst/Fundraising-2019-Components?node-id=1081%3A839
Ideally, the messages are removed once users enter a valid value. This would result the viewport to move unexpectedly, though.