WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Contact Form 7] Success Page Forwarding (9 posts)

  1. djones101
    Member
    Posted 5 years ago #

    Hi,

    How can you simply forward completed forms to a success page? The green box isn't cutting it for my site because I have a form that is very long. The people submitting the form re-submit the form because they do not know it has been submitted.

    I read another fix you had on this topic, however it conflicted with wp-super-cache... Any help would be greatly appreciated. I would just like to forward a completed form to a permalink page that explains that they submitted their form. I would also then be able to put other information on that page that can instruct the user other methods of contacting me.

    Thanks for the help

    Dan

  2. fergsta1
    Member
    Posted 5 years ago #

    bump for any ideas, alternative plug ins?

  3. digitz
    Member
    Posted 5 years ago #

    Not supported in the current version.
    Hopefully Takayukister will look into this issue in the near future.

  4. squarecandy
    Member
    Posted 5 years ago #

    This is a temporary hack that I did 'cause I have a very long form.

    hide the form on success - it's confusing if the empty form is still there, especially if it's taller than one screen.

    open contact-form-7.js
    under line 90 ( if (1 == data.mailSent) )
    add

    var wpcfTheForm = document.getElementById('wpcf7-formid');
    wpcfTheForm.style.display = ('none');

    Then add that id to the form
    Open wp-contact-form-7.php - line 914

    $form .= '<form action="' . $url . '" method="post" id="wpcf7-formid" class="wpcf7-form"' . $enctype . '>';
  5. squarecandy
    Member
    Posted 5 years ago #

    You could also put some js that will forward to a success page in that same spot in contact-form-7.js if you wanted to do that...

  6. djones101
    Member
    Posted 5 years ago #

    Does this work in firefox, safari, and the dreaded family of internet explorer (ie6-ie8)?

  7. djones101
    Member
    Posted 5 years ago #

    I tried this....

    line 90:

    if (1 == data.mailSent) {
    jQuery(data.into).find('form').resetForm().clearForm();
    //wpcf7ResponseOutput.addClass('wpcf7-mail-sent-ok');
    window.location = "http://mysite.com/thank-you/";

    It did not do anything.

    I also have the wp-super-cache plugin running.

  8. djones101
    Member
    Posted 5 years ago #

    Squarecandy,

    What other plugins are you running…? I still can not get this hack to work

    I have these running:

    akismet
    all-in-one-seo-pack
    contact-form-7
    google-analyticator
    google-sitemap-generator
    tinymce-advanced
    wp-super-cache

    window.location = “http://mysite.com/thank-you/”;
    and
    location.href=”http://www.xxx.com/thank-you-contact-form”;

    also do not work...

  9. djones101
    Member
    Posted 5 years ago #

    I had two instances of jquery appearing. It was blocking me from changing anything in the .js file. By default it was going to the .php file.

    Thanks for the help everyone. Sorry for my mistakes. the hacks do seem to work.

Topic Closed

This topic has been closed to new replies.

About this Topic