title: Checkbox violates data validation rules
body: <p>I've generated multiple checkboxes (all are unticked) using apps script, all with the same code but some of them when clicked result in a popup saying they violated data validation rules (and they remain unticked). I checked manually (in the data validation menu) and they all have the same rule and if I remove the rule nothing changes.</p>
  
  <p><code>
  var enforceCheckbox = SpreadsheetApp.newDataValidation(); enforceCheckbox.requireCheckbox(); enforceCheckbox.setAllowInvalid(false); enforceCheckbox.build(); checkboxRange.setDataValidation(enforceCheckbox);</code></p>
  
  <p>In my script all their values are checked using the onEdit event but since I can't even edit their value I doubt that's relevant.</p>