Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Server Validation returns true before validating

    I have a customServer validator. When I call valuesManager.validate(), the validate() call returns true, and then enters customServer condition(). The error is shown but I expected validate() to return false.

    How can I have condition() called prior to returning from validate()?

    #2
    We've added some new features to the 3.0 branch to support this. Specifically:
    - dynamicForm.isPendingAsyncValidation() - a method that returns true to indicate an asynchronous validation is in progress
    - dynamicForm.addAsyncValidationReplyHandler() - a notification event that fires when an asychronous validation returns, with 'getSuccess()' and 'getErrors()' to determine the reply status.

    Comment

    Working...
    X