• Resolved jaymoek

    (@jaymoek)


    Hi,

    I am getting the following error in the console when submitting the form with a redirect set:

    controls.js?ver=0.0.2:44 Uncaught TypeError: Cannot read property ‘contactFormId’ of undefined
    at HTMLDocument.<anonymous> (controls.js?ver=0.0.2:44)
    at HTMLDocument.dispatch (jquery.js?ver=1.11.3:4)
    at HTMLDocument.r.handle (jquery.js?ver=1.11.3:4)
    at Object.trigger (jquery.js?ver=1.11.3:4)
    at Object.e.event.trigger (jquery-migrate.min.js?ver=1.2.1:2)
    at HTMLDivElement.<anonymous> (jquery.js?ver=1.11.3:4)
    at Function.each (jquery.js?ver=1.11.3:2)
    at e.fn.init.each (jquery.js?ver=1.11.3:2)
    at e.fn.init.trigger (jquery.js?ver=1.11.3:4)
    at Object.$.wpcf7AjaxSuccess (scripts.js?ver=4.3.1:134)

    I am using Contact Form 7 version 4.3.1.

    Thanks for the help!

Viewing 1 replies (of 1 total)
  • Plugin Author Kaspars

    (@kasparsd)

    Interesting. contactFormId in line 44 of controls.js is a property of the form object passed by the Contact Form 7 plugin to JS hooks like wpcf7:mailsent, wpcf7:mailfailed and others.

    Are you running the latest version 0.6.1 of the plugin? Could you please upgrade to the latest version 5.0.3 of the Contact Form 7 plugin?

    This demo example seems to be working fine with analytics tracking enabled.

Viewing 1 replies (of 1 total)
  • The topic ‘Cannot read property ‘contactFormId’ of undefined’ is closed to new replies.