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

[Suggestion] Display form errors after first click-away #1

Open
bitofbreeze opened this issue Feb 21, 2018 · 2 comments
Open

[Suggestion] Display form errors after first click-away #1

bitofbreeze opened this issue Feb 21, 2018 · 2 comments

Comments

@bitofbreeze
Copy link

If I start entering text and then leave the focus of the box I was in, I want to know if there are errors before I submit. This is also in contrast to just leaving the errors displayed beforehand until the user satisfies the requirements.

@benogle
Copy link
Contributor

benogle commented Feb 21, 2018

It's true, one could check validation on blur. I'll think about this. Maybe it is an option. I like just showing errors on submit for short forms. But for long forms, you would probably want to know on blur so you arent 15 fields away from the thing you need to fix.

@lafeber
Copy link

lafeber commented Mar 28, 2019

👍 on this one! It would also be nice to set a class, e.g. is-valid to the input on blur, so you can also style :valid

I should mention that I really love this validator, as it allows for super clean code in combination with https://github.com/plataformatec/simple_form. The form generator makes sure the html5 attributes are copied from the backend validations, so you now have stylish frontend form validations with one line of js without any duplication of code. Awesome!

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

No branches or pull requests

3 participants