Skip to content
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

[UForm] How to add validation to custom input #1983

Closed
hamonCordova opened this issue Jul 24, 2024 · 3 comments
Closed

[UForm] How to add validation to custom input #1983

hamonCordova opened this issue Jul 24, 2024 · 3 comments
Labels
question Further information is requested

Comments

@hamonCordova
Copy link

Description

I've created a custom input component (using normal HTML input) and put it inside a UForm -> FormGroup, but it doesn't show any errors when validate. How can i achive this?

@hamonCordova hamonCordova added the question Further information is requested label Jul 24, 2024
@evanstinger
Copy link

evanstinger commented Jul 26, 2024

Do you mean, after your validation logic ran, you want to display the error message?
You need to conditionally show it.

@spencerjsmall
Copy link

@hamonCordova #1573

@hamonCordova
Copy link
Author

hamonCordova commented Jul 26, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants