2
1
0
  1. Yulius Gita

    Christopher Eagar No. that would result field error message being shown.

  2. Christopher Eagar

    Ok, i'll get someone to look into this.

CommentAdd your comment...

1 answer

  1.  
    1
    0
    -1

    Try this:

    maestro.Validation.validate(Form.getItemFromPath("data.textField"), data).then(
      function(validation) {
       if(validation.valid) {
        // valid
         console.log(validation.valid);
       } else {
        // not valid
         console.log(validation.errors);
       }
      }
    );


    Calling Form.validate() under the covers calls Validation.validate(), but Form.validate() also broadcasts the validation display event.  Calling Validation.validate() should just run the validation checks and return potential errors, without broadcasting the validation display event.


      CommentAdd your comment...