Title: undefined function ajaxForm
Last modified: August 22, 2016

---

# undefined function ajaxForm

 *  Resolved [inpariswithyou](https://wordpress.org/support/users/inpariswithyou/)
 * (@inpariswithyou)
 * [12 years ago](https://wordpress.org/support/topic/undefined-function-ajaxform/)
 * Contact Form keeps throwing
 * Uncaught TypeError: undefined is not a function
 * on line 14 of scripts.js:
 * `this.ajaxForm`
 * Any thoughts?
 * [https://wordpress.org/plugins/contact-form-7/](https://wordpress.org/plugins/contact-form-7/)

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

 *  Plugin Author [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * (@takayukister)
 * [12 years ago](https://wordpress.org/support/topic/undefined-function-ajaxform/#post-5196480)
 * Try deactivating all other plugins and switching to the default theme.
 *  Thread Starter [inpariswithyou](https://wordpress.org/support/users/inpariswithyou/)
 * (@inpariswithyou)
 * [12 years ago](https://wordpress.org/support/topic/undefined-function-ajaxform/#post-5196502)
 * It appears the problem is a conflict with the plugin Social Sharing Toolkit, 
   [http://wordpress.org/plugins/social-sharing-toolkit/](http://wordpress.org/plugins/social-sharing-toolkit/).
 * Do you have any thoughts on how I may fix the conflict?
 *  [strandcreative](https://wordpress.org/support/users/strandcreative/)
 * (@strandcreative)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/undefined-function-ajaxform/#post-5196728)
 * I get this and have disabled all plugins and reverted to default theme but still
   throws this error.
 *  [JabariHolder](https://wordpress.org/support/users/jabariholder/)
 * (@jabariholder)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/undefined-function-ajaxform/#post-5196737)
 * Download this file:
    [https://github.com/alchapone/ajaxform/blob/master/ajaxform.js](https://github.com/alchapone/ajaxform/blob/master/ajaxform.js)
 * Add the file to your theme (didn’t test but you get the idea):
 * Using the functions.php **(Recommended):**
 *     ```
       function theme_name_scripts() {
       	wp_enqueue_script( 'ajaxform', get_template_directory_uri() . '/js/ajaxform.js', array(), '1.0.0', true );
       }
       add_action( 'wp_enqueue_scripts', 'theme_name_scripts' );
       ```
   
 * Using your footer
 *     ```
       <script type="text/javascript" src="<?php echo bloginfo('template_directory') ?>/js/ajaxform.js">
       ```
   
 * **On a side note: **
    If you’re using requirejs to load your scripts; DO NOT 
   load ContactForm7 scripts.js from require. Instead, simply load ajaxform from
   require and everything will work fine.
 *  [Endlyss](https://wordpress.org/support/users/akel-res/)
 * (@akel-res)
 * [11 years ago](https://wordpress.org/support/topic/undefined-function-ajaxform/#post-5196770)
 * Just in case anyone is wondering — Jabari’s Solution works wonderfully (since
   there wasn’t any real confirmation about whether it worked or not)
 * Implemented the ajaxform.js and everything went back to normal 🙂
 * Best Regards.

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

The topic ‘undefined function ajaxForm’ 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
 * 5 participants
 * Last reply from: [Endlyss](https://wordpress.org/support/users/akel-res/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/undefined-function-ajaxform/#post-5196770)
 * Status: resolved