Skip to content

DataForm layout validation #72321

@oandregal

Description

@oandregal

Related: #71500

What

The Field API supports basic required and custom validation in all controls. This is displayed to users when they interact with the regular DataForm layout, as in the example:

Screen.Recording.2025-10-14.at.14.16.24.mov

However, other layouts such as panel or card don't display any. For example:

Screen.Recording.2025-10-14.at.14.17.12.mov

Status

We need to consider how to surface validation in all layouts.

  • Regular: ok. The components display the errors.
  • Row: not necessary.
  • Panel: unimplemented.
    • Should/How to display the error in the summary field?
    • Can the dropdown/modal close when there are errors?
  • Card: unimplemented.
    • When the card is closed, do we display any validation as summary?

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Feature] DataViewsWork surrounding upgrading and evolving views in the site editor and beyond[Package] DataViews/packages/dataviews[Type] EnhancementA suggestion for improvement.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions