validate

abstract override fun validate(): PreChatErrorType

Validates the current userInput against this field's rules (required, format, max length).

Return

A PreChatErrorType representing the validation error, or PreChatErrorType.None if valid.