Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter gwidgets

    (@gwidgets)

    I saw it before posting here. I don’t think you understood what the real problem is.

    I encountred the same issue. I had to change the script.js to make it work, I have added the following block to the $.wpcf7AjaxSuccess method:

    var reCaptchaMessage = ‘<div id=”recaptcha-message” class=”wpcf7-response-output wpcf7-validation-errors”><span>Please check the reCaptcha </span> <div>’;

    var recaptcha = $form.find(‘#g-recaptcha-response’);
    if(recaptcha) {
    if(recaptcha.val().length == 0){
    $form.append(reCaptchaMessage);
    $form.addClass(‘invalid’);
    $form.find(‘img.ajax-loader’).css({ visibility: ‘hidden’ });
    return;
    }else{
    $form.removeClass(‘invalid’);
    $form.find(“#recaptcha-message”).remove();

    }

    }

    It works fine.

Viewing 2 replies - 1 through 2 (of 2 total)