google_api_surveys v0.3.0 GoogleApi.Surveys.V2.Model.SurveyQuestion View Source

Message defining the question specifications.

Attributes

  • answerOrder (type: String.t, default: nil) - The randomization option for multiple choice and multi-select questions. If not specified, this option defaults to randomize.
  • answers (type: list(String.t), default: nil) - Required list of answer options for a question.
  • hasOther (type: boolean(), default: nil) - 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.
  • highValueLabel (type: String.t, default: nil) - 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.
  • images (type: list(GoogleApi.Surveys.V2.Model.SurveyQuestionImage.t), default: nil) -
  • lastAnswerPositionPinned (type: boolean(), default: nil) - Currently only support pinning an answer option to the last position.
  • lowValueLabel (type: String.t, default: nil) - 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.
  • mustPickSuggestion (type: boolean(), default: nil) - Option to force the user to pick one of the open text suggestions. This requires that suggestions are provided for this question.
  • numStars (type: String.t, default: nil) - Number of stars to use for ratings questions.
  • openTextPlaceholder (type: String.t, default: nil) - Placeholder text for an open text question.
  • openTextSuggestions (type: list(String.t), default: nil) - A list of suggested answers for open text question auto-complete. This is only valid if single_line_response is true.
  • question (type: String.t, default: nil) - Required question text shown to the respondent.
  • sentimentText (type: String.t, default: nil) - 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.
  • singleLineResponse (type: boolean(), default: nil) - 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.
  • thresholdAnswers (type: list(String.t), default: nil) - 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.
  • type (type: String.t, default: nil) - Required field defining the question type. For details about configuring different type of questions, consult the question configuration guide.
  • unitOfMeasurementLabel (type: String.t, default: nil) - Optional unit of measurement for display (for example: hours, people, miles).
  • videoId (type: String.t, default: nil) - The YouTube video ID to be show in video questions.

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() :: %GoogleApi.Surveys.V2.Model.SurveyQuestion{
  answerOrder: String.t(),
  answers: [String.t()],
  hasOther: boolean(),
  highValueLabel: String.t(),
  images: [GoogleApi.Surveys.V2.Model.SurveyQuestionImage.t()],
  lastAnswerPositionPinned: boolean(),
  lowValueLabel: String.t(),
  mustPickSuggestion: boolean(),
  numStars: String.t(),
  openTextPlaceholder: String.t(),
  openTextSuggestions: [String.t()],
  question: String.t(),
  sentimentText: String.t(),
  singleLineResponse: boolean(),
  thresholdAnswers: [String.t()],
  type: String.t(),
  unitOfMeasurementLabel: String.t(),
  videoId: String.t()
}

Link to this section Functions

Link to this function

decode(value, options) View Source
decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.