BaseType
public enum BaseType: String
The base type of the form input field. This is used to indicate what the type is of the value being prompted and will affect the choice of allowed formatters.
-
The Boolean question type asks the participant to enter Yes or No (or the appropriate equivalents).
Declaration
Swift
case boolean
-
In a date question, the participant can enter a date, time, or combination of the two. A date data type can map to a
RSDDateRange
to box the allowed values.Declaration
Swift
case date
-
In a year question, the participant can enter a year when an event occured. A year data type can map to an
RSDDateRange
orRSDNumberRange
to box the allowed values.Declaration
Swift
case year
-
The decimal question type asks the participant to enter a decimal number. A decimal data type can map to a
RSDNumberRange
to box the allowed values.Declaration
Swift
case decimal
-
The integer question type asks the participant to enter an integer number. An integer data type can map to a
RSDNumberRange
to box the allowed values, but will store the value as anInt
.Declaration
Swift
case integer
-
The fraction question type asks the participant to enter a fractional number. A fractional data type can map to a
RSDNumberRange
to box the allowed values.Declaration
Swift
case fraction
-
In a string question, the participant can enter text.
Declaration
Swift
case string
-
Undocumented
Declaration
Swift
public static func allTypes() -> [BaseType]