google_api_surveys v0.2.0 GoogleApi.Surveys.V2.Model.SurveyQuestion View Source
Message defining the question specifications.
Attributes
- answerOrder (String.t): The randomization option for multiple choice and multi-select questions. If not specified, this option defaults to randomize. Defaults to:
null
. - answers ([String.t]): Required list of answer options for a question. Defaults to:
null
. - hasOther (boolean()): Option to allow open-ended text box for Single Answer and Multiple Answer question types. This can be used with SINGLE_ANSWER, SINGLE_ANSWER_WITH_IMAGE, MULTIPLE_ANSWERS, and MULTIPLE_ANSWERS_WITH_IMAGE question types. Defaults to:
null
. - highValueLabel (String.t): For rating questions, the text for the higher end of the scale, such as 'Best'. For numeric questions, a string representing a floating-point that is the maximum allowed number for a response. Defaults to:
null
. - images ([SurveyQuestionImage]): Defaults to:
null
. - lastAnswerPositionPinned (boolean()): Currently only support pinning an answer option to the last position. Defaults to:
null
. - lowValueLabel (String.t): For rating questions, the text for the lower end of the scale, such as 'Worst'. For numeric questions, a string representing a floating-point that is the minimum allowed number for a response. Defaults to:
null
. - mustPickSuggestion (boolean()): Option to force the user to pick one of the open text suggestions. This requires that suggestions are provided for this question. Defaults to:
null
. - numStars (String.t): Number of stars to use for ratings questions. Defaults to:
null
. - openTextPlaceholder (String.t): Placeholder text for an open text question. Defaults to:
null
. - openTextSuggestions ([String.t]): A list of suggested answers for open text question auto-complete. This is only valid if single_line_response is true. Defaults to:
null
. - question (String.t): Required question text shown to the respondent. Defaults to:
null
. - sentimentText (String.t): Used by the Rating Scale with Text question type. This text goes along with the question field that is presented to the respondent, and is the actual text that the respondent is asked to rate. Defaults to:
null
. - singleLineResponse (boolean()): Option to allow multiple line open text responses instead of a single line response. Note that we don't show auto-complete suggestions with multiple line responses. Defaults to:
null
. - thresholdAnswers ([String.t]): The threshold/screener answer options, which will screen a user into the rest of the survey. These will be a subset of the answer option strings. Defaults to:
null
. - type (String.t): Required field defining the question type. For details about configuring different type of questions, consult the question configuration guide. Defaults to:
null
. - unitOfMeasurementLabel (String.t): Optional unit of measurement for display (for example: hours, people, miles). Defaults to:
null
. - videoId (String.t): The YouTube video ID to be show in video questions. Defaults to:
null
.
Link to this section Summary
Functions
Unwrap a decoded JSON object into its complex fields.
Link to this section Types
Link to this type
t()
View Source
t()
View Source
t() :: %GoogleApi.Surveys.V2.Model.SurveyQuestion{
answerOrder: any(),
answers: [any()],
hasOther: any(),
highValueLabel: any(),
images: [GoogleApi.Surveys.V2.Model.SurveyQuestionImage.t()],
lastAnswerPositionPinned: any(),
lowValueLabel: any(),
mustPickSuggestion: any(),
numStars: any(),
openTextPlaceholder: any(),
openTextSuggestions: [any()],
question: any(),
sentimentText: any(),
singleLineResponse: any(),
thresholdAnswers: [any()],
type: any(),
unitOfMeasurementLabel: any(),
videoId: any()
}
t() :: %GoogleApi.Surveys.V2.Model.SurveyQuestion{ answerOrder: any(), answers: [any()], hasOther: any(), highValueLabel: any(), images: [GoogleApi.Surveys.V2.Model.SurveyQuestionImage.t()], lastAnswerPositionPinned: any(), lowValueLabel: any(), mustPickSuggestion: any(), numStars: any(), openTextPlaceholder: any(), openTextSuggestions: [any()], question: any(), sentimentText: any(), singleLineResponse: any(), thresholdAnswers: [any()], type: any(), unitOfMeasurementLabel: any(), videoId: any() }
Link to this section Functions
Link to this function
decode(value, options) View Source
Unwrap a decoded JSON object into its complex fields.