InternalPreChatField

data class InternalPreChatField(val name: String, val order: Int, val labels: PreChatLabels = PreChatLabels(), val type: PreChatFieldType, val required: Boolean, val maxLength: Int, var userInput: String = "", var errorType: PreChatErrorType = PreChatErrorType.None, var isHidden: Boolean = false, var isEditable: Boolean = true) : PreChatField

Constructors

Link copied to clipboard
constructor(name: String, order: Int, labels: PreChatLabels = PreChatLabels(), type: PreChatFieldType, required: Boolean, maxLength: Int, userInput: String = "", errorType: PreChatErrorType = PreChatErrorType.None, isHidden: Boolean = false, isEditable: Boolean = true)

Properties

Link copied to clipboard
open override var errorType: PreChatErrorType
Link copied to clipboard
open override var isEditable: Boolean
Link copied to clipboard
open override var isHidden: Boolean
Link copied to clipboard
open override val labels: PreChatLabels
Link copied to clipboard
open override val maxLength: Int
Link copied to clipboard
open override val name: String
Link copied to clipboard
open override val order: Int
Link copied to clipboard
open override val required: Boolean
Link copied to clipboard
open override val type: PreChatFieldType
Link copied to clipboard
open override var userInput: String

Functions

Link copied to clipboard
open override fun isValid(): Boolean

Indicates whether the field is valid.

Link copied to clipboard
open override fun validate(): PreChatErrorType

Validates the pre-chat field