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?
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 acceptsonlyCheck
flag as a second argument to determine, whether it should show error message or just return aboolean
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 bothlive-form-validation
andnette-forms
use globally scopedNette
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?