Skip to content

[EuiForm] Add ability to show error callout in the bottom of the form #1854

Closed

Description

@cjcenizal

Currently, this form error appears at the top. Many of the forms used by the ES UI team are fairly tall, so if there's an error the user won't see the callout unless they scroll up. We've accommodated this by adding another danger callout at the bottom of the screen to let the user know the form contains errors, but this wouldn't be necessary if EuiForm placed its own callout at the bottom.

Activity

  1. cchaos commented on Sep 18, 2020

    @cchaos
    Contributor

    EuiForm now has a invalidCallout prop that allows for 'above' | 'none'. We can now easily add the option for 'below' as well.

  2. changed the title [-][DISCUSS] Consider moving the EuiForm's error callout to the bottom of the form[/-] [+]Add ability to show EuiForm's error callout in the bottom of the form[/+] on Sep 18, 2020
  3. changed the title [-]Add ability to show EuiForm's error callout in the bottom of the form[/-] [+][EuiForm] Add ability to show error callout in the bottom of the form[/+] on Sep 20, 2020
  4. chandlerprall commented on Feb 9, 2021

    @chandlerprall
    Contributor

    Some thoughts on this from our weekly:

    • shift focus to the validation errors when the box appears, better for screen reader support & can scroll it into view
    • in addition to above/below, is there a version of the component that returns the validation errors element, allowing it to be placed anywhere in the form
    • pattern familiarity & recognition - does this or related changes cause confusion for users who are familiar with the existing pattern of always displaying errors at the top
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions