CheckBox¶
The CheckBox form element is used for a checkbox row.
Checked and UnChecked Values¶
The value is set to checkedValue when checked. The value is set to unCheckedValue when unChecked.
Example¶
Kotlin¶
checkBox<Boolean>(1) {
value = true
checkedValue = true
unCheckedValue = false
}
Java¶
List<BaseFormElement<?>> elements = new ArrayList<>();
FormCheckBoxElement<Boolean> checkBox = new FormCheckBoxElement<>(1);
checkBox.setValue(true);
checkBox.setCheckedValue(true);
checkBox.setUnCheckedValue(false);
elements.add(checkBox);