Title: Javascript Conflict with Contact Form 7
Last modified: August 22, 2016

---

# Javascript Conflict with Contact Form 7

 *  [RichardILD](https://wordpress.org/support/users/richardild/)
 * (@richardild)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/javascript-conflict-with-contact-form-7/)
 * Hey,
 * I’ve discovered there is a javascript conflict between your plugin and Contact
   Form 7 which causes the spinning arrow next to the send button to continue spinning
   without delivering the mail sent message. I switched off every plugin and narrowed
   it down to WP Job Manager – Contact Listing.
 * Is this something that you have encountered before, and if so, is there a solution?
 * Many thanks,
 * Richard
 * [https://wordpress.org/plugins/wp-job-manager-contact-listing/](https://wordpress.org/plugins/wp-job-manager-contact-listing/)

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

 *  Thread Starter [RichardILD](https://wordpress.org/support/users/richardild/)
 * (@richardild)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/javascript-conflict-with-contact-form-7/#post-5481902)
 * By the way, it also seems to prevent attachments from being delivered when using
   CF7 forms for job applications. Attachments work with standalone CF7 forms. It’s
   puzzling.
 *  [theomanus](https://wordpress.org/support/users/theomanus/)
 * (@theomanus)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/javascript-conflict-with-contact-form-7/#post-5482313)
 * Yes I noticed the same issue. The spinning arrow goes on and on…
    First I thought
   the email wasn’t sent, but later I saw the email came through.
 * Is there any fix?
 *  [electro907](https://wordpress.org/support/users/electro907/)
 * (@electro907)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/javascript-conflict-with-contact-form-7/#post-5482315)
 * I was having the same problem. The form used by Job Manager was working correctly
   but other forms weren’t. Here’s my solution:
 * – Open the file cf7.php located in /wp-content/plugins/wp-job-manager-contact-
   listing/includes/forms
 * – Locate the line: `if ( ! array_search( $cf7->id, $this->forms[ $object->post_type])){`
   in the function notification_email
 * – Above that line insert the following line: `if (empty($this->forms[ $object-
   >post_type ])) return $components;`
 * The problem is that the function array_search expects an array but the value 
   supplied is null when a form other than the one specified in **Contact a Job 
   Form** is used.
 *  [theomanus](https://wordpress.org/support/users/theomanus/)
 * (@theomanus)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/javascript-conflict-with-contact-form-7/#post-5482324)
 * Thanx electro907 for your help, but unfortunately it doesn’t solve the problem.
 * Has anyone a fix?
 *  [jodydeanrogan](https://wordpress.org/support/users/jodydeanrogan/)
 * (@jodydeanrogan)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/javascript-conflict-with-contact-form-7/#post-5482348)
 * Hi All,
 * I have found exactly the same issue, I have activated/deactivated the plugins
   I am using on my site and it appears that this plugin is causing the issue.
 * I hope we can find a solution that doesn’t require a plugin hack, any thoughts?
 * Jody
 *  [theomanus](https://wordpress.org/support/users/theomanus/)
 * (@theomanus)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/javascript-conflict-with-contact-form-7/#post-5482354)
 * I give this a little push 🙂
 * Has the developer of this plugin had a look on this problem?
    Its been a while
   since it was posted first time.
 * Or has anyone else a solution?

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

The topic ‘Javascript Conflict with Contact Form 7’ is closed to new replies.

 * ![](https://ps.w.org/wp-job-manager-contact-listing/assets/icon-256x256.png?rev
   =1488338)
 * [Contact Listing for WP Job Manager](https://wordpress.org/plugins/wp-job-manager-contact-listing/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-job-manager-contact-listing/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-job-manager-contact-listing/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-job-manager-contact-listing/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-job-manager-contact-listing/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-job-manager-contact-listing/reviews/)

## Tags

 * [javascript conflict](https://wordpress.org/support/topic-tag/javascript-conflict/)

 * 6 replies
 * 4 participants
 * Last reply from: [theomanus](https://wordpress.org/support/users/theomanus/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/javascript-conflict-with-contact-form-7/#post-5482354)
 * Status: not resolved