You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
👍 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!
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.
The text was updated successfully, but these errors were encountered: