RPChoice
The choice object which the participant can choose during a RPQuestionStep with RPChoiceAnswerFormat.
- Inheritance
-
- Object
- Serializable
- RPChoice
- Annotations
-
- @JsonSerializable(includeIfNull: false, explicitToJson: true)
Constructors
RPChoice.fromJson
RPChoice
Default constructor.
Properties
detailText
getter/setter pair
The detailed text to show if needed. Shown as a Info-icon which takes the user to a detail page with the detailText
fromJsonFunction
The function which can convert a JSON string to an object of this type.
isFreeText
getter/setter pair
If set to true, then the user can enter the text instead of the default text which was provided. The value remains the same. By default it is set to false. text will be shown as a hintText
text
getter/setter pair
The text to display.
value
getter/setter pair
The value of this choice - for example 4 on a 0-5 scale.
Methods
toJson
Return a JSON encoding of this object.