Skip to content

[Feature Request]: Enhancing Validation for Form Components #10487

Open
@nnaydenow

Description

Feature Request Description

Native HTML form elements provide detailed information about the validity of specific fields. This depends on how they are configured using attributes like required, min, max, maxlength, and others.

MDN: HTMLObjectElement Validity
MDN: ValidityState API
This built-in validity helps improve how form elements function, how they are styled (e.g., using :invalid or :valid selectors), and how they provide feedback about why a component may be invalid.

Proposed Solution

By integrating the ElementsInternal API into ui5-webcomponents, the form web components can define their validity based on their specific properties and attributes.

Currently, only the required property is reflected in the validity object of the custom element.

Proposed Alternatives

No response

Organization

No response

Additional Context

No response

Priority

Low

Privacy Policy

  • I’m not disclosing any internal or sensitive information.

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions