Skip to main content
Version: Latest Version (2.9.1)

highbond_question_choice (Resource)

Schema

Required

item_typeString Specifies the type of the questionnaire item. Enum: SingleChoiceQuestion, MultipleChoiceQuestion, DropdownQuestion
optionsBlock List, Min: 1 List of Options available
Nested Schema for `options`

Required

textString The text of an option

Optional

follow_up_questionsList of Number The IDs of the follow-up questions to an option
reference_idString Unique identifier for the response option within the choice question
weightNumber Adds importance weight to an option
questionnaire_idString The ID of the Questionnaire
textString The main text of the question

Optional

column_textString The display name of the question when it appears in a table
force_updatesBoolean Allows overriding top-level 'create_only' option.
idString The ID of this resource.
instructionsString The instructions for answering the question
optionalBoolean Specifies whether the question is optional
other_valueString When spcified, respondents can provide an alternative answer if the available options do not apply to them. The text will be used as the label to this option
positionNumber The position value determines the order of items within the questionnaire
reference_idString Unique identifier for the question within the questionnaire, and for the response option within the choice question.
weightNumber Adds importance weight to choice question

Read-Only

created_atString The date the question was created
question_idNumber Id of the question
updated_atString The date the question was updated

Example Usage

resource "highbond_question_choice" "main" {
questionnaire_id = highbond_questionnaire.main.id
text = "Terraform : How do you feel at home during Covid"
instructions = "Stay safe and stay home. It's not your choice. Its a govt order"
column_text = "No text"
optional = false
item_type = "MultipleChoiceQuestion"
position = 4
other_value = "None of the above"
reference_id = "Important"
weight = 1.88 // Only 2 digits after decimal point are allowed
force_updates = true // Create only with force update changes

options {
text = "Safe"
reference_id = "Safety"
weight = 1.88 // Only 2 digits after decimal point are allowed
}

options {
text = "Not Safe"
follow_up_questions = [
highbond_question_simple.main.id,
highbond_question_numeric.main.id
]
}
}