Text

interface Text : FieldDefinition

Details of a text (or email) field.

Properties

Link copied to clipboard
abstract val fieldId: String

Identifier for the field.

Link copied to clipboard
abstract val isEMail: Boolean

Is the field intended to be an email address?

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.

Functions

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

Check if value is valid for this field definition.