InternalChoiceListField
class InternalChoiceListField(name: String, order: Int, labels: PreChatLabels, type: PreChatFieldType = PreChatFieldType.ChoiceList, required: Boolean, maxLength: Int, val choiceListId: String, userInput: String = "", errorType: PreChatErrorType = PreChatErrorType.None, isHidden: Boolean = false, isEditable: Boolean = true, var choiceList: ChoiceList = ChoiceList(choiceListId)) : ChoiceListField, InternalPreChatField
A pre-chat form field backed by a ChoiceList, allowing users to select from predefined options.
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(choiceListId))
Properties
Link copied to clipboard
The associated ChoiceList for the pre-chat field.
Link copied to clipboard
The choice list ID, which maps to a particular choice list on the ChoiceListConfiguration.
Link copied to clipboard
The current validation error for this field, or PreChatErrorType.None if valid.
Link copied to clipboard
Whether the user can modify this field. Non-editable fields display a pre-filled value.
Link copied to clipboard
The localized label strings displayed to the user for this field.
Link copied to clipboard
The input type of this field, which determines validation rules and keyboard behavior.
Functions
Link copied to clipboard
Validates the current userInput against this field's rules (required, format, max length).