• this problem is solved if you add url: ” to dataType in the scripts.js (28 line)

    working code:

    $.fn.wpcf7InitForm = function() {
    this.ajaxForm({
    beforeSubmit: function(arr, $form, options) {
    $form.wpcf7ClearResponseOutput();
    $form.find(‘[aria-invalid]’).attr(‘aria-invalid’, ‘false’);
    $form.find(‘.ajax-loader’).addClass(‘is-active’);
    return true;
    },
    beforeSerialize: function($form, options) {
    $form.find(‘[placeholder].placeheld’).each(function(i, n) {
    $(n).val(”);
    });
    return true;
    },
    data: { ‘_wpcf7_is_ajax_call’: 1 },
    dataType: ‘json’,
    url: ”,
    success: $.wpcf7AjaxSuccess,
    error: function(xhr, status, error, $form) {
    var e = $(‘<div class=”ajax-error”></div>’).text(error.message);
    $form.after(e);
    }
    });

  • The topic ‘don’t submit a form, which was loaded by ajax’ is closed to new replies.