TermsAndConditions

data class TermsAndConditions(val isTermsAndConditionsEnabled: Boolean, val isTermsAndConditionsRequired: Boolean?, val label: String?) : FormField

A TermsAndConditions class that defines the configuration for legal terms.

Parameters

isTermsAndConditionsEnabled

Whether or not Terms and Conditions is enabled.

isTermsAndConditionsRequired

Determines whether or not the user must accept the Terms and Conditions. Optional.

label

The display label of Terms and Conditions.

Constructors

Link copied to clipboard
constructor(isTermsAndConditionsEnabled: Boolean, isTermsAndConditionsRequired: Boolean?, label: String?)

Properties

Link copied to clipboard
open override var errorType: PreChatErrorType
Link copied to clipboard
open override var isHidden: Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val label: String?
Link copied to clipboard
var spannableString: SpannableString?

The label represented as a SpannableString that has been parsed.

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 form field