• Hey,

    I’m using your plugin successfully to validate admin & user login and registration forms. I also have a completely custom form that submits via AJAX. Using the plugin currently stops that form from from submitting with AJAX because the form is submitted with JS in this code:

    
    callback: function (recaptchaToken) {
      if (null !== cf7SubmitElm && typeof jQuery != 'undefined') {
        jQuery(frm).submit();
        grecaptcha.reset(holderId);
        return;
      }
      HTMLFormElement.prototype.submit.call(frm);
    }
    

    From looking at the code and a few hours of experimenting, it looks like I can currently get this to work correctly, simply by adding the wpcf7-submit class to my submit button (which changes the behaviour of your JS).

    However, since at some point this could cause some clash with a real wpcf7-submit button, it would be nice to have an option for setting a custom value for this class…. maybe somehow in the google_invre_render_widget_action filter?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Custom Form, AJAX Submit’ is closed to new replies.