Redirect a Contact Form 7 form to another page

Good,
I have copied /home/igualemo/public_html/wp-content/themes/functions.php in my file manager, as indicated in one of the links, specifically this one, which is the one that touches when there are different redirections, in my case I have This one was chosen because there are two forms as it is a bilingual page. The fact is that according to your indications it should be like this, but there is no reaction when SENDING the form. Thanks, as always.

add_action( ‘wp_footer’, ‘redirect_cf7’ );

function redirect_cf7() {
?>

document.addEventListener( ‘wpcf7mailsent’, function( event ) {
if ( ‘6956’ == event.detail.contactFormId ) { // Send submissions on form 6956 to the second thank you page
location = ‘https://www.igualem.org/fes-una-donacio/’;
} else if ( ‘7033’ == event.detail.contactFormId ) { // Send submissions on form 7033 to the second thank you page
location = ‘https://www.igualem.org/es/fes-una-donacio/’;
}
}, false );

}

AnswerQuote

Answered : 08/02/2018 7:30 pm

See also  Use of the Prestashop web service
Loading Facebook Comments ...
Loading Disqus Comments ...