BaseType
public enum BaseType : String, CaseIterable
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
-
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
-
In a duration question, the participant can enter a time span such as
8 hours, 5 minutes
or3 minutes, 15 seconds
.Declaration
Swift
case duration
-
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
-
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
-
In a string question, the participant can enter text.
Declaration
Swift
case string
-
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
-
A
Codable
object. This is an object that can be represented using a JSON or XML dictionary.Declaration
Swift
case codable