WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. RCSTP
    Member
    Posted 2 years ago #

    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/

  2. Karesansui
    Member
    Posted 2 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
    Member
    Posted 2 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

About this Topic