Viewing 8 replies - 1 through 8 (of 8 total)
  • Well this problem still exists…the author is a lazy idiot. I found more then 10 topics on this and no solution. Buying a plugin would be better i think….this is just worlds simple contact form.

    • This reply was modified 7 years, 7 months ago by babylon.

    Contact form 7 Redirecting Issue solved.

    Contact form 7 Redirecting to Another URL After Submissions

    First you need to update contact form 7 on new version i try it on v7.4.9 and then place a contact form short code in any page and place this JS script any where on page and change url where need to redirect your page after submission

    ` <script>
    document.addEventListener( ‘wpcf7mailsent’, function( event ) {
    location = ‘https://example.com/&#8217;;
    }, false );
    </script>

    For more info click contact form 7 official site https://contactform7.com/redirecting-to-another-url-after-submissions/

    Would this script apply the redirect to all of the forms on the site? I have multiple forms, but only would like one of them to redirect. how would I do so? thank you!

    I’m sure hoping that there is further instructions coming out soon about this.
    1) I have forms on the same site that some redirect to different pages
    2) Some forms do not need a redirect
    Please let us know about some variation instructions.
    Thank you

    Hey guys,
    I cant get the page to re-direct.

    Where do we paste this new code?

    ` <script>
    document.addEventListener( ‘wpcf7mailsent’, function( event ) {
    location = ‘https://example.com/’;
    }, false );
    </script>

    @mrme123 @sherryltd @alexfisha No this script only for the single page means if you have one form there short code use on different pages but you want to redirect a any one page to other url you used this script on that particular page thanks. but if you have multiple form in single page the script work for both forms, for that solution goto there particular form CF7 and then click on additional settings and then paste this script code there but remember check your CF7 version.

    Does this script work in case I am using redirect plugins?

    Yes hope so, depends on plugin don’t clash each other, other wise it’s working there is two option to implement this script 1st go to your form and the click on additional settings then paste this script other wise where you cf7 shortcode form paste this script on particular page to redirect

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Redirect not working’ is closed to new replies.