SMIPreChatErrorTypes
Objective-C
enum SMIPreChatErrorTypes : NSUInteger {}
Swift
enum PreChatErrorTypes : UInt, @unchecked Sendable
The type of pre-chat error.
-
Required field not completed.
Declaration
Objective-C
SMIPreChatErrorTypesRequiredField
Swift
case requiredField = 0
-
Field value exceeds the maximum length.
Declaration
Objective-C
SMIPreChatErrorTypesMaxLength
Swift
case maxLength = 1
-
Email field doesn’t have a valid email address.
Declaration
Objective-C
SMIPreChatErrorTypesEmailFormat
Swift
case emailFormat = 2
-
Phone field doesn’t have a valid phone number.
Declaration
Objective-C
SMIPreChatErrorTypesPhoneFormat
Swift
case phoneFormat = 3
-
The check box is not selected.
Declaration
Objective-C
SMIPreChatErrorTypesCheckBoxSelected
Swift
case checkBoxSelected = 4
-
Number field doesn’t have a number.
Declaration
Objective-C
SMIPreChatErrorTypesNumberFormat
Swift
case numberFormat = 5
-
Boolean field doesn’t have a boolean value.
Declaration
Objective-C
SMIPreChatErrorTypesBooleanFormat
Swift
case booleanFormat = 6
-
No validation error detected.
Declaration
Objective-C
SMIPreChatErrorTypesNone
Swift
case none = 7