CustomFieldType

public enum CustomFieldType : Equatable

The different types of elements that can be present in the content of a dynamic pre-chat survey.

Each type represents different UI element which is necessary to implement in the integration application. Also, each element contains attribute isRequired which determines if it is necessary pass filled values with method set(_:for:).

Warning

If ChannelConfiguration contains some pre-chat survey elements and application did not pass then with method set(_:for:) SDK throws an missingPreChatCustomFields.
  • A textfield element which contains simple textfield or e-mail.

    In case of e-mail, BE requires proper e-mail validation on the application side.

    Declaration

    Swift

    case textField(CustomFieldTextField)
  • A list/selector element type. It contains list of options which are selected via dropdown picker, table or related UI element.

    Declaration

    Swift

    case selector(CustomFieldSelector)
  • complex type with subelements represented as a tree data structure.

    Declaration

    Swift

    case hierarchical(CustomFieldHierarchical)