BooleanCollector

A Collector implementation for a single checkbox field.

{
"type": "SINGLE_CHECKBOX",
"key": "single-checkbox-field",
"label": "This is a sample checkbox test. ",
"required": true,
"inputType": "BOOLEAN",
"appearance": "CHECKBOX", # Optional, defaults to CHECKBOX. Can be either CHECKBOX or SWITCH.
"errorMessage": "Select the checkbox to continue.",
"richContent": {
"content": "This is a sample checkbox test. "
}
}

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun init(input: JsonObject): BooleanCollector

Function to initialize the field collector.

Link copied to clipboard
open override fun payload(): Boolean
Link copied to clipboard
open override fun validate(): List<ValidationError>

Function to validate the field collector.