Selector

public interface Selector implements FieldDefinition

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.

Functions

Link copied to clipboard
public abstract String getFieldId()

Identifier for the field.

Link copied to clipboard
public abstract String getLabel()

Human-readable label for the field.

Link copied to clipboard
public abstract Sequence<SelectorNode> getValues()

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

Link copied to clipboard
public abstract Boolean isRequired()

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

Link copied to clipboard
public abstract Unit validate(String value)

Check if value is valid for this field definition.