Skip to content

Using Nette.validateForm for check only #53

@rozsival

Description

@rozsival

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions