TermsAndConditions

@JsonClass(generateAdapter = true)
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
Link copied to clipboard
Link copied to clipboard
open override var isHidden: Boolean

Whether this field is hidden from the user in the form UI.

Link copied to clipboard
Link copied to clipboard

The label represented as a SpannableString that has been parsed.

Link copied to clipboard
open override var userInput: String

Functions

Link copied to clipboard

Parses the markdown-style label of this TermsAndConditions into a SpannableString with clickable URL spans.

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