MessageFormItem
open class MessageFormItem: NSObject, Codable, NSCopying
The item data held by the Message form. Since: 4.21.0
-
Unique ID value
Declaration
Swift
public let id: Int64
-
The name of the item specified in the dashboard
Declaration
Swift
public let name: String
-
Value to indicate whether the value is required
Declaration
Swift
public let required: Bool
-
A value indicating the sort order of the items
Declaration
Swift
public let sortOrder: Int
-
Values for displaying placeholders in the UI
Declaration
Swift
public let placeholder: String
-
Data that describes the UI appearance of the item
Declaration
Swift
public let style: MessageFormItem.Style
-
A field that has a submitted value. Managed as a list with multiple entries for a specific item.
Declaration
Swift
public let submittedValues: [String]?
-
an object to hold the data to submit Managed as a list with multiple entries for a specific item. By default, the first value in the list is used
Declaration
Swift
public var draftValues: [String]?
-
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 -
Methods for checking if draft values are valid
Declaration
Swift
public func isValid(_ draftValues: [String]?) -> Bool
-
Data that describes the UI appearance of the item Since: 4.21.0
See moreDeclaration
Swift
open class Style: NSObject, NSCopying, Codable
-
Declaration
Swift
public enum LayoutType: Int, Codable, RawRepresentable
-
Data to limit the number of values entered Since: 4.21.0
See moreDeclaration
Swift
open class ResultCount: NSObject, Codable, NSCopying