I want to show an error message when I click the submit button. So suppose I have 3 checkboxes (I show only one here because the other are the same):
<label>
     <input type="checkbox" name="privacy" value="1" id="privacy" required="required" >
      <span class="text-gray" style="font-size: 12px;"> 
        <a href="/privacy-policy/" target="_blank">Privacy</a>
      </span>
</label>
All checkboxes have the attribute required="required". When I click on the submit button and the checkbox is not selected, I obtain two things:
- I don't read anything about the "checkbox is empty" that I must read for HTML default validation when the attribute is required 
- I obtain this error: - An invalid form control with name='privacy' is not focusable. 
Can someone help me?
 
     
     
     
    