cferdinandi / validate

A lightweight form validation script.
MIT License
230 stars 39 forks source link

Custom error for specific input types #48

Closed entozoon closed 6 years ago

entozoon commented 6 years ago

Hey there, firstly - love the package, it's wicked!

Not sure if a bug or feature request but I can't find a simple way to change the typical required error message for, say, a 'do you accept.. ' checkbox as "Please fill out this field." doesn't quite ring true.

Also, this should totally be a legit npm package. Installing it through github is.. fine.. but it breaks if you subsequently install another package - you have to delete node_modules and re-install it all (for reason that are beyond me).

cferdinandi commented 6 years ago

Really good point. I'll see what I can do here.

cferdinandi commented 6 years ago

I just added custom error messages for checkboxes and radio buttons: https://github.com/cferdinandi/validate#global-settings