title: How to set required field in contact form 7 wordpress
body: <p>I have a list of multiple checkboxes in the form. The user can check all the checkboxes but at least one is required. Without selecting at least one, checkbox they should not be able to submit the form. how to make it in contact form 7?
  I have added the script which is not working.<br>
  <br> Here is my script</p>
  
  <p>
   $(document).ready(function () {
     <code>$('#checkBtn').click(function() {</code> </p>
  
  <p>checked = $("input[type=checkbox]:checked").length;</p>
  
  <pre><code> if(!checked) {
      alert("You must check at least one checkbox.");
      return false;
    }
  
  });
  </code></pre>
  
  <p>});</p>
  
  <p></p>