title: Meteor AutoForm - Is it possible to manually call the onSuccess or onError hooks?
body: <p>I have this form that checks for the user's CAPTCHA input. When the CAPTCHA is valid, it should send an e-mail, otherwise it should display an error.</p>
  
  <pre><code>AutoForm.addHooks(["form1", "form2", "form3"], {
  
      onSubmit: function(doc) {
  
          Meteor.call('validateCaptcha', formData, function(error, result) {
  
              if (result.success == true) {
                  Meteor.call('sendEmail', doc);
              } else {
                  Recaptcha.reload();
                  // call onError here
                  console.log("Error!");
              }
  
          });
      },
  
      onSuccess: function(operation, result, template) {
          // display success, reset form status
          console.log("CAPTCHA Validation Success! Email Sent!");
      }, 
  
      onError: function(operation, error, template) {
          // display error, reset form status
          console.log("Error: CAPTCHA Validation failed!");
      }
  }
  </code></pre>
  
  <p>Now the problem with my code is that when the user submits a correct CAPTCHA, the code will send an e-mail but does not trigger the <code>onSuccess()</code> hook.</p>
  
  <p>The same goes with when the user submits a wrong CAPTCHA. It displays my error message but does not trigger the <code>onError()</code> hook.</p>
  
  <p>Is there a way to manually call these hooks?</p>