InternalChoiceListField

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

Constructors

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

Properties

Link copied to clipboard
@Transient
open override var choiceList: ChoiceList

The associated ChoiceList for the pre-chat field.

Link copied to clipboard
open override val choiceListId: String

The choice list ID, which maps to a particular choice list on the ChoiceListConfiguration.

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