title: Disable Contact Form 7 form submit
body: <p>I'm using a contact form for my WP website. I want to call some function before I submit the form. </p>
  
  <p>I thought I could disable the submit form by using the following code:</p>
  
  <pre><code>let form = document.querySelector('form');
  form.addEventListener('submit', function(ev){
      ev.preventDefault();
      //some more functions
  });
  </code></pre>
  
  <p>For some reason this isn't working and CF7 is still submiting my form. 
  Does someone know how to prevent the submit function.</p>
  
  <p>I don't want to use the disabled function on the button cause this way the form loses it's orignal function.</p>