Selector

Details of a list field.

Typically, a list field will be displayed as a dropdown or popup menu. Each item in the menu will take its label from the label property of the corresponding SelectorNode in values. The value of the field can only be set to one of the SelectorNode.nodeId values from the list of SelectorNode.

Properties

Link copied to clipboard
abstract val fieldId: String

Identifier for the field.

Link copied to clipboard
abstract val isRequired: Boolean

True iff the value is required. This is only valid for fields within a survey

Link copied to clipboard
abstract val label: String

Human-readable label for the field.

Link copied to clipboard

The list of possible values which the chosen Selector may hold.

Functions

Link copied to clipboard
abstract fun validate(value: String)

Check if value is valid for this field definition.