• Getting this error in console and popup stops working using wordpress 5.7 version.

    wpcf7.initForm is not a function

Viewing 2 replies - 1 through 2 (of 2 total)
  • I got the same issue, as a result the form will not submit and throws and AJAX error (in my case an empty page is show) Code 400.

    Unfortunately, I was not able to solve it, so I disabled the Plugin and added some custom code to my page
    possible solution

    If you find a solution, I still would like to know about it. ??

    I saw the answer in the topic “Plugin Button is not trigger”

    If you follow the solution of Ionwi. This solved the problem for me

    He wrote:

    To fix the issue I had to replace line 273 of woocommerce-quote-or-enquiry-contact-form-7.php:

    wpcf7.initForm(jQuery('.wqoecf-pop-up-box .wpcf7 > form'));

    replace with:

    jQuery('.wqoecf-pop-up-box .wpcf7 > form').each(function() {
        wpcf7.init(jQuery(this)[0]);
    });

    You have to update first to version 1.9

    • This reply was modified 3 years, 11 months ago by masterchief67. Reason: additional information
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘wpcf7.initForm is not a function’ is closed to new replies.