Multiple master checkboxes in the statements component
Single master checkbox
By default the statements component is displayed with a single master checkbox. Regardless of the number of controls, such a checkbox selects them all.


Multiple master checkboxes
To display two or more master checkboxes, you must first define them by clicking Add masterCheckbox in the field LIST OF MASTERCHECKBOXES (masterCheckboxes).

Define master checkboxes
For each master checkbox you must define:
mastercheckboxId — The Id that will identify the master checkbox for the controls
labelKey — The text key that will be displayed for the master checkbox with the given id
visibleCondition — The visibility condition for the master checkbox. Default value: "true".
Bind master checkbox to a control
To bind a master checkbox to a control, enter the master checkbox id in the control definition. Appropriate entries must be added to the component JSON (more about creating statements in Statements editor).
Example (JSON fragment) showing adding master checkboxes "mCh1" and "mCh2" for statements:

When only one master checkbox is visible, the statements will look like below. The master checkbox key will not be displayed; instead a default description will appear. In this case the master checkbox behavior does not change and it still selects only those controls that have the parameter mastercheckbox pointing to its id — in other words, that master checkbox does not select all controls.

Last updated
Was this helpful?
