updated handling of checkboxes

This commit is contained in:
2025-04-07 01:22:09 -04:00
parent cb306cefd5
commit 80e996a281
2 changed files with 33 additions and 48 deletions

View File

@ -58,11 +58,11 @@
<fieldset class="form-group">
<legend>Check Group</legend>
<span class="form-group__item">
<input data-validation='{"optional": true, "maxCount": 2}' id="checkbox-1" type="checkbox" name="checks">
<input data-validation='{"maxCount": 2}' id="checkbox-1" type="checkbox" name="checks">
<label for="checkbox-1">Checkbox 1</label>
</span>
<span class="form-group__item">
<input id="checkbox-2" type="checkbox" name="checks">
<input data-validation='{"optional": false}' id="checkbox-2" type="checkbox" name="checks">
<label for="checkbox-2">Checkbox 2</label>
</span>
<span class="form-group__item">