title: How to clear form input on page load woocommerce checkout
body: <p>I am offering customers a repurchase on the order confirmed page. If they click the link they are sended directly to the checkout page. However, the form is then prefilled with the previous data. I would like to clear it, because the idea is one product(ticket) per person.</p>
  <p>So far i have the following (and in the page source i can see the script is loaded):</p>
  <pre><code>function print_script() {
  
  if (isset($_GET['extrapersoon']) &amp;&amp; is_page(21560)){
  
      echo '&lt;script&gt;
  window.addEventListener(&quot;load&quot;, function(){myFunction()};
  
  function myFunction() {
    document.getElementsByClassName(&quot;woocommerce-checkout&quot;).reset(); 
  }
  &lt;/script&gt;';
          }
    }
  add_action('wp_print_scripts', 'print_script');
  </code></pre>
  <p>I tried other triggers too, such as window.load but no result yet.</p>
  <p>Anyone?</p>