live-form-validation icon indicating copy to clipboard operation
live-form-validation copied to clipboard

Using Nette.validateForm for check only

Open rozsival opened this issue 6 years ago • 1 comments

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?

rozsival avatar Feb 06 '19 16:02 rozsival

Hi.

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

f3l1x avatar Feb 14 '19 06:02 f3l1x