You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I really like the support of async rules via ajax.
I am facing now a problem, when I use them.
I have a custom submit-button on my page that should only work, when all validation rules are met (validationErrors().length === 0). This works perfectly with normal rules.
But when I have a remote rules with multiple fields, that at first are correct but when I've entered invalid input, the remote validation starts.
In the meantime - for some seconds - I am able to trigger my submit button since the remote validation rules are still running and no validation errors are in that array.
What is the best way to solve this?
My idea: It would be nice when the validationGroup would also provide a check for the isValidating()-Observable of all containing observables.
Thanks for helping...
The text was updated successfully, but these errors were encountered:
This seems like a bug, as from the usage standpoint, validation should provide the same features, whether there are some fields that are validated asynchronously or not.
In the current paradigm there is a isValidating observable that would serve the same purpose for group validation as it does for single field. There is no such property currently on the ViewModel that is being validate using:
I really like the support of async rules via ajax.
I am facing now a problem, when I use them.
I have a custom submit-button on my page that should only work, when all validation rules are met (validationErrors().length === 0). This works perfectly with normal rules.
But when I have a remote rules with multiple fields, that at first are correct but when I've entered invalid input, the remote validation starts.
In the meantime - for some seconds - I am able to trigger my submit button since the remote validation rules are still running and no validation errors are in that array.
What is the best way to solve this?
My idea: It would be nice when the validationGroup would also provide a check for the isValidating()-Observable of all containing observables.
Thanks for helping...
The text was updated successfully, but these errors were encountered: