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

Which validation library is compatible with Carbon? #7628

Closed
biapar opened this issue Jan 22, 2021 · 5 comments
Closed

Which validation library is compatible with Carbon? #7628

biapar opened this issue Jan 22, 2021 · 5 comments

Comments

@biapar
Copy link

biapar commented Jan 22, 2021

Which validation library is compatible with Carbon?

@tw15egan
Copy link
Collaborator

tw15egan commented Feb 4, 2021

Hey there @biapar do you have any more information that you could provide us so we can help answer your question? What are you trying to validate?

@biapar
Copy link
Author

biapar commented Feb 4, 2021

Hi, I create a form with more fields and so I need to validate input from client side before to save. I used Formik, but there isn’t anything included with Carbon.

@tw15egan
Copy link
Collaborator

tw15egan commented Feb 4, 2021

You'll need to handle the validation yourself. All Carbon form elements have an invalid and invalidText property to handle displaying the errors. Hope that helps!

@biapar
Copy link
Author

biapar commented Feb 4, 2021

yes, I solved in that manner. thanks.

@tw15egan
Copy link
Collaborator

tw15egan commented Feb 4, 2021

Great to hear! Going to close this out but feel free to reach out with any other questions you may have 🙂

@tw15egan tw15egan closed this as completed Feb 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants