Giantpaper.org

Btw, Interactive forms that validate as the user types are annoying

Dear Ubiosoft… (and anyone who thinks online forms like these are a great idea).

DON’T VALIDATE MY INPUTS AS I TYPE!!

Example: For email, I enter my email…”h….” and the form screams at me “USE A VALID EMAIL ADDRESS”. Like…yeah it’s not a valid email, I haven’t finished typing it!! 😤😤😤😤 >:u

Alternate solution for those curious: validate when the user is no longer focused on the form field (in Javascript, that would be when the blur event happens, don’t know the equivalent for computer programming languages, sorry).

// With jQuery
$('.element').blur(function(){
  // validate inputs here
});
// With vanilla JavaScript
document.querySelector('.element').addEventListener('blur', () => {
  // validate inputs here
});

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *