Skip to content

[Form] error_bubbling: Option to show the error message twice, i.e. at the field and (bubbled) at the form #36729

Closed
@ThomasLandauer

Description

@ThomasLandauer

Description
On longer forms it's a good idea to show validation errors twice: as a complete summary on top of the form, plus on each invalid field. Right now, by either setting error_bubbling to true or false, you can only have one of these options, but not both: https://symfony.com/doc/current/reference/forms/types/form.html#error-bubbling

Possible implementation: At #9994 an option error_location (or display_errors) was discussed, with possible values self | parent | root. If the value would be an array (instead of a string), you could opt for multiple locations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureFormRFCRFC = Request For Comments (proposals about features that you want to be discussed)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions