Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Form] Unclear where bubbled errors come from #9472

Copy link
Copy link
Closed
@Burgov

Description

@Burgov
Issue body actions

This is especially true for dynamic forms. Say I have an entity Project, with properties Company and ContactPerson, both with a NotNull contraint

When I create a form for this, the type will have one normal field: company, and one field that is added by a listener, depending on the chosen company: contactPerson.

If I would post to this form without supplying values for either field, I will get two errors. One is mapped to the company field as expected. The other error, however, should be mapped to contactPerson, which, however, does not yet exists. Instead the error bubbles up to the top and atop the form it will just show "This value should not be null".

Especially if there's a lot of dependant fields on your form, this will quickly become a mess above the form.

I would like to see a way to handle these situations a bit better, for example adding the propertypath to the error message if it is not mapped to it directly. Although this will look quite technical to the end user, it's still better than nothing.

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.