bump for any ideas, alternative plug ins?
Not supported in the current version.
Hopefully Takayukister will look into this issue in the near future.
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 . '>';
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…
Does this work in firefox, safari, and the dreaded family of internet explorer (ie6-ie8)?
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.
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…
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.