This control is intended to simplify the grouping of checkbox values.
Wrapping checkboxes in a group allows you to omit the name and validation attributes on individual checkboxes by applying them via name and validations attributes on the group.
(Required) Give this control a unique id. Can be accessed in the client DOM (eg, document.getElementById('myid') or in the server DOM using [? $myid ?] or [? $('myid') ?]).
- `name`
string
Name
Sets the name value which will be applied to all child Checkboxes. For
Checkboxes, the name attribute indicates which form field they will submit their value to.
Note: Uses the same [ ] syntax as forms:checkbox
Eg: name="fruits[]"
- `validations`
string
Validations
Sets the validations to be applied to child checkboxes as a comma-separated string.
Eg: validations="mandatory"
When no validations attribute value is set, no item needs to be selected.
Examples
Grouping Checkboxes
The name of the checkbox group acts as the field to which the checkboxes will map. This is used instead of applying a name attribute to each individual checkbox.