Not too sure. you could maybe add a filter to ‘wpcf7_posted_data’ with a function like this. Add it to your theme’s functions.php. i haven’t actually tried this though.
function send_mail_for_form( $cf7_posted_data ) {
$wpcf7 = WPCF7_ContactForm::get_current();
if ( $wpcf7->id() == YOUR_FORM_ID_HERE ) {
$wpcf7->skip_mail = false;
}
return $cf7_posted_data;
}
add_filter('wpcf7_posted_data', 'send_mail_for_form');
Thanks, I appreciate your help, however, when I added my form ID to the above code and added it to the the functions.php that code is now appearing at the top of all my websites pages and the form wont go past step one when you click it.
Any other suggestions would be greatly appreciated.
SUCCESS!!! I added that code to the “contact-form-7-multi-step-module.php” and it worked fine!!!!!
you should add it to your functions.php file so it doesn’t get overwritten when you update this plugin. If the code is showing up when viewing all your pages, you may need to add <?php
before the code.
Excellent! That was it.. added <?php before the code on the functions.php file… works great, thanks again!
Hi
I wanted to know is there a way that the mail sent in first step can have a link to second step to continue but also deliver the first step fields to add to second step.
like if I filled out the first form I folow the link sent to me and just need to finish the second form.
no, this plugin can’t do that. please start your own thread next time.
hi, i added the code in functions.php, but there is no email sent after submit of the first form? is there a new code since wp 4.7?
As of version 2.2, released this past month, the new code would be:
add_filter( 'wpcf7_skip_mail', '__return_false', 11 );
This can be in your theme’s functions.php file.
@webheadllc That was too cool of you to follow up with that update. I was wondering what happened. Appreciate it, works perfectly!
-
This reply was modified 6 years, 10 months ago by SEOAlien.
Hi,
How about having multiple multiple step forms?
-
This reply was modified 6 years, 9 months ago by meiskv.