Title: Uncaught TypeError: wpcf7.initForm is not a function
Last modified: August 25, 2017

---

# Uncaught TypeError: wpcf7.initForm is not a function

 *  Resolved [geckodesign](https://wordpress.org/support/users/geckodesign/)
 * (@geckodesign)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/uncaught-typeerror-wpcf7-initform-is-not-a-function/)
 * I get the following console error on my landing page. I cant understand what 
   this error means? Any help would be appreciated!
 * Uncaught TypeError: wpcf7.initForm is not a function
    at HTMLFormElement.<anonymous
   > (/wp-content/plugins/contact-form-7/includes/js/scripts.js:33) at Function.
   each (/wp-includes/js/jquery/jquery.js:2) at a.fn.init.each (/wp-includes/js/
   jquery/jquery.js:2) at HTMLDocument.<anonymous> (/wp-content/plugins/contact-
   form-7/includes/js/scripts.js:31) at i (/wp-includes/js/jquery/jquery.js:2) at
   Object.add [as done] (/wp-includes/js/jquery/jquery.js:2) at n.fn.init.n.fn.ready(/
   wp-includes/js/jquery/jquery.js:2) at a.fn.init.n.fn.init (/wp-includes/js/jquery/
   jquery.js:2) at a.fn.init (/wp-includes/js/jquery/jquery-migrate.min.js:2) at
   n (/wp-includes/js/jquery/jquery.js:2)
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Funcaught-typeerror-wpcf7-initform-is-not-a-function%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * (@takayukister)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/uncaught-typeerror-wpcf7-initform-is-not-a-function/#post-9441557)
 * What other plugins do you use on the site?
 *  Thread Starter [geckodesign](https://wordpress.org/support/users/geckodesign/)
 * (@geckodesign)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/uncaught-typeerror-wpcf7-initform-is-not-a-function/#post-9441571)
 * Akismet Anti-Spam
    CM Custom Post Types (my plugin) CM Widgets (my plugin) Contact
   Form 7 Google Analytics for WordPress by MonsterInsights WP deferred javaScript
   WP Updates Notifier WP Smush Yoast SEO WP-PageNavi
 *  Plugin Author [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * (@takayukister)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/uncaught-typeerror-wpcf7-initform-is-not-a-function/#post-9442994)
 * Try deactivating the WP deferred javaScript.
 *  [danielshorten](https://wordpress.org/support/users/danielshorten/)
 * (@danielshorten)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/uncaught-typeerror-wpcf7-initform-is-not-a-function/#post-9735496)
 * I am also having trouble with the latest version of Contact Form 7 (4.9.1) and
   an AJAX loading plugin.
 * I was able to solve my problem by moving the jQuery “on ready” function in scripts.
   js that calls wpcf7.initForm to after the initForm function is defined. I think
   the code works on the first load, when the DOM is still loading, but on an AJAX
   load when the DOM is already loaded, initForm gets called before it is defined.
 * I know this is a quirky case, but perhaps you could consider this change in a
   later version of the plugin.
 * Thanks.
 *  [Obada Qawwas](https://wordpress.org/support/users/obadaqawwas/)
 * (@obadaqawwas)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/uncaught-typeerror-wpcf7-initform-is-not-a-function/#post-9966866)
 * Thank you [@danielshorten](https://wordpress.org/support/users/danielshorten/)

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

The topic ‘Uncaught TypeError: wpcf7.initForm is not a function’ is closed to new
replies.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

 * 5 replies
 * 4 participants
 * Last reply from: [Obada Qawwas](https://wordpress.org/support/users/obadaqawwas/)
 * Last activity: [8 years, 4 months ago](https://wordpress.org/support/topic/uncaught-typeerror-wpcf7-initform-is-not-a-function/#post-9966866)
 * Status: resolved