For the complete documentation index, see llms.txt. This page is also available as Markdown.

Multiple master checkboxes in the statements component

Single master checkbox

By default, the statements component is displayed with one master checkbox. Regardless of the number of controls, such a checkbox selects them all.

Figure 1. Example appearance of statements with one master checkbox for one control (depending on the implementation, the appearance may vary)
Figure 2. Example appearance of the component with one master checkbox for two controls (depending on the implementation, the appearance may vary)

Multiple master checkboxes

To display two or more master checkboxes, first define them by clicking Add masterCheckbox in the MASTER CHECKBOX LIST (masterCheckboxes).

Figure 3. The MasterCheckbox List window with a defined list of two main checkboxes
1

Define master checkboxes

For each master checkbox, 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 specified id

  • visibleCondition — The visibility condition of the master checkbox. Default value: "true".

2

Associate the master checkbox with a control

To associate a master checkbox with a control, enter the master checkbox id in the control definition. Appropriate entries must be added in the component JSON (more about creating statements in Statement Editor).

Example (JSON fragment) showing the addition of master checkboxes "mCh1" and "mCh2" for statements:

Figure 4. Example statements with three master checkboxes (depending on the implementation, the appearance may vary).

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

Figure 5. Example statements with one master checkbox visible (depending on the implementation, the appearance may vary).

Last updated

Was this helpful?