Skip to content

Native Angular forms validation support #3948

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
nfellinger opened this issue Mar 17, 2025 · 1 comment
Open

Native Angular forms validation support #3948

nfellinger opened this issue Mar 17, 2025 · 1 comment
Labels
👩‍👧‍👦community feedback Feedback from community ↗️jira Issues created in jira to discuss further

Comments

@nfellinger
Copy link

nfellinger commented Mar 17, 2025

It would be desirable to have native support for Angular reactive and template-driven forms validation to make use of the validation messages and styling which DB-UX provides for input elements.
Currently components like db-input only support standard html validation with attributes like required or min/max etc..

Validators of Angular formControls that are bound to db-input (or any other DB-UX data input element) are ignored forcing developers to implement their own custom implementation of input validation messages.

This would also provide an opertunity to extend the functionality of one simple validation message to support multiple validation messages per element. Since formControls can have multiple validation errors, a possible usage scenario could look something like this:

<db-input formControlName="username" label="Username">
    <db-infotext error="usernameRequired">A username is required</db-infotext>
    <db-infotext error="usernameTooLong">Max length of username is 100</db-infotext>
    <db-infotext error="usernameAlreadyExists">This username is already taken</db-infotext>
</db-input>

@LSchroff
Copy link

Jira 4511

@mfranzke mfranzke moved this to 📋 Backlog in UX Engineering Team Backlog Mar 27, 2025
@nmerget nmerget added the ↗️jira Issues created in jira to discuss further label Mar 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👩‍👧‍👦community feedback Feedback from community ↗️jira Issues created in jira to discuss further
Projects
Status: No status
Development

No branches or pull requests

4 participants