Contact Form 7
submit contact form with Javascript (3 posts)

  1. RCSTP
    Posted 4 years ago #

    How can I submit the Contact Form with Javascript, I am thinking of a javascript command like this below:
    however, the Contact Form 7 does not seem to have a "name" or "id" that I can use in the Javascript. Any ideas?


  2. Karesansui
    Posted 4 years ago #

    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.

  3. RCSTP
    Posted 4 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Contact Form 7
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic