10000 [Form] Remember invalid fields if errors bubble up · Issue #6001 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
[Form] Remember invalid fields if errors bubble up #6001
Closed
@Tobion

Description

@Tobion

We need a form that displays all errors at the top hierarchy (error_bubbling = true) but at the same time allows to know whether an individual field has an error (to style it properly).
AFAIK, this is currently not possible. Because as soon as the errors bubble up, the form does not know about errors of individual fields. So maybe we can add a boolean marker to fields when an error is assigned to them so one knows about a field error even when the error bubbled up.
Or is there some way to achieve this with the current feature set? A workaround would probably be, to disable error_bubbling and manually collecting and rendering all errors.

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

      0