MessageForm

@objc(SBDMessageForm)
open class MessageForm : NSObject, Codable, NSCopying

Message form data Since: 4.21.0

  • id

    Unique ID value

    Declaration

    Swift

    public let id: Int64
  • The name of the form specified in the dashboard

    Declaration

    Swift

    public let name: String
  • Message form item list

    Declaration

    Swift

    public let items: [MessageFormItem]
  • Version of the form

    Declaration

    Swift

    public let version: Int
  • Copies this object

    Declaration

    Swift

    public func copy(with zone: NSZone? = nil) -> Any

    Parameters

    zone

    optional NSZone

    Return Value

    Form instance

  • Default constructor.

    Declaration

    Swift

    public required init(from decoder: Decoder) throws

    Parameters

    decoder

    Decoder instance

  • Encodes this object.

    Declaration

    Swift

    public func encode(to encoder: Encoder) throws

    Parameters

    encoder

    Encoder instance

utils

  • Indicates that the form data has already been submitted.

    Declaration

    Swift

    @objc
    public var isSubmitted: Bool { get }
  • Indicates that the form data can be submitted.

    Declaration

    Swift

    @objc
    public var canSubmit: Bool { get }

    Return Value

    If true, can be submitted NOTE: You MUST store the value entered by user interaction in the temporaryAnswer.