title: How to redirect contact form 7 to another page after submission?
body: <p>I'm trying to redirect to another page after contact form submission button is clicked but it doesn't work. I'm trying it following the oficial guide <a href="https://contactform7.com/redirecting-to-another-url-after-submissions/" rel="nofollow noreferrer">https://contactform7.com/redirecting-to-another-url-after-submissions/</a> and putting this script:</p>
  
  <pre><code>&lt;script&gt;
  document.addEventListener( 'wpcf7mailsent', function( event ) {
      location = 'http://example.com/';
  }, false );
  &lt;/script&gt;
  </code></pre>
  
  <p>inside the additional preferences tab but it doesn't work. How can i solve this problem?</p>