Thread Starter
ZLC
(@kindnessville)
As a test, I updated Contact Form 7 to the latest version, 5.8.6, and it’s redirecting. So, it appears as though there’s only an issue with your plugin.
Hi,
Can you update the plugin again and add a link to your form so we can check the issue?
Thread Starter
ZLC
(@kindnessville)
I resolved this. Thank you for your assistance!
Please can you let me know how you resolved this, as I’m getting: Plugin could not be activated because it triggered a fatal error.
Thread Starter
ZLC
(@kindnessville)
@melvidge I’m so sorry to hear about your trouble. I deleted the plugin and added this code to every page where I have a contact form embedded and want redirection to happen:
<script>
document.addEventListener( 'wpcf7mailsent', function( event ) {
location = 'http://example.com/';
}, false );
</script>
Replace 'http://example.com' with the URL you’d like the contact form to redirect to. This comes directly from the Contact Form 7 plugin author.
I hope it helps you.