Title: [Plugin: Contact Form 7] submit contact form with Javascript
Last modified: August 20, 2016

---

# [Plugin: Contact Form 7] submit contact form with Javascript

 *  [Rick Cheney](https://wordpress.org/support/users/rcstp/)
 * (@rcstp)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-contact-form-7-submit-contact-form-with-javascript/)
 * How can I submit the Contact Form with Javascript, I am thinking of a javascript
   command like this below:
    document.myform.submit(); however, the Contact Form
   7 does not seem to have a “name” or “id” that I can use in the Javascript. Any
   ideas?
 * [http://wordpress.org/extend/plugins/contact-form-7/](http://wordpress.org/extend/plugins/contact-form-7/)

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

 *  [Karesansui](https://wordpress.org/support/users/karesansui/)
 * (@karesansui)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-contact-form-7-submit-contact-form-with-javascript/#post-2299640)
 * Well CF7 is serverbased PHP and Javascript is browser based. You may find a problem
   in trying to do this !
    I do not think CF7 was meant te be used in the way you
   want to use it.
 *  Thread Starter [Rick Cheney](https://wordpress.org/support/users/rcstp/)
 * (@rcstp)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-contact-form-7-submit-contact-form-with-javascript/#post-2299641)
 * Thanks, I ended up using another contact form plugin named ajax-contact.1.6.0.
   I call the form in the normal way but then after the contact form is submitted
   it uses javascript to reply that the form was successfully submitted sent so 
   I was able to add my javascript code in with the existing code and process a 
   second form through javascript.

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

The topic ‘[Plugin: Contact Form 7] submit contact form with Javascript’ 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/)

 * 2 replies
 * 2 participants
 * Last reply from: [Rick Cheney](https://wordpress.org/support/users/rcstp/)
 * Last activity: [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-contact-form-7-submit-contact-form-with-javascript/#post-2299641)
 * Status: not resolved