Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using Nette.validateForm for check only #53

Open
rozsival opened this issue Feb 6, 2019 · 1 comment
Open

Using Nette.validateForm for check only #53

rozsival opened this issue Feb 6, 2019 · 1 comment

Comments

@rozsival
Copy link
Member

rozsival commented Feb 6, 2019

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
Copy link
Member

f3l1x commented Feb 14, 2019

Hi.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants