If you use the WordPress plugin Contact Form 7 (most of my clients do!), a recent announcement by the plugin creator changed the way the page redirect function works.   Previously, to redirect visitors to a custom “Thank You” page after they complete your contact form, we would add some JavaScript code to the “Additional Settings” tab.  When a visitor filled out your form, it would redirect them to a custom page.

This “on_sent_ok” code has been deprecated and will no longer work.

Solution

The easiest solution I found is to install this plugin: Contact Form 7 – Success Page Redirects

The plugin will add a tab to your Contact Form 7 menu that will allow you to choose a page on your website to redirect visitors after successfully filling out your form.  The benefit to using this plugin is that you can setup a different “Thank You” page for each form on your website.

Does this effect my website?

This redirection setting is not used on all websites that have Contact Form 7.  By default, the plugin will display a “Your message was sent successfully” green box after a submission.  If you are not sure whether your form needs to be updated, try submitting a test message.  If you see a green success message and you receive the email, you do not need to make any changes.  If you submit the message and see an error page, I can help you make the necessary updates to fix the problem.  It’s always a good idea to test your contact forms occasionally to make sure they are working!

Author: Jennifer Sanderson

I take the frustration out of managing your WordPress website so you can focus on growing your business. My unique approach to website maintenance means you get dedicated one-on-one attention to your website without the cost of a full time employee. Learn More About the Blue Duck Difference