contributte / live-form-validation

:no_entry: Nice client-side live form validation for Nette Forms.
https://contributte.org/packages/contributte/live-form-validation.html
BSD 3-Clause "New" or "Revised" License
59 stars 24 forks source link

Using Nette.validateForm for check only #53

Open rozsival opened 5 years ago

rozsival commented 5 years ago

First of all, thank you for this neat library, it works just great! However, there is a small issue I stumbled upon.

I would like to use Nette.validateForm function which accepts onlyCheck flag as a second argument to determine, whether it should show error message or just return a boolean indicating the form's current validity.

It seems that parts of the original nette-forms code were removed so it always triggers error messages.

I am currently importing original nette-forms to utilize the function in my use-case, but that seems as a wrong approach to me as both live-form-validation and nette-forms use globally scoped Nette variable.

What would be the correct approach if I just need to check whether the form is valid on client-side without triggering any error message?

f3l1x commented 5 years ago

Hi.

I would prefer to compare our and nette version and send a PR. ;-)