highbond_questionnaire (Resource)
Example Usage
resource "highbond_questionnaire" "main" {
collection_id = highbond_collection.main.id
name = "Terraform Questionnaire"
instruction = "Terraform Instruction"
position = 1
resubmittable = true
respondent_view = "no_records"
email_subject = "T Questionnaire Subject"
email_message = "T Questionnaire Message"
linked_tables_ids = [highbond_table.main.id]
linked_tables_only = false
weighting = false
reference_id = "Important"
locale = "en"
force_updates = true // Create only with force update changes
}
resource "highbond_questionnaire_section" "main" {
questionnaire_id = highbond_questionnaire.main.id
name = "Section"
description = "Section description"
position = 1
reference_id = "Section"
}
resource "highbond_questionnaire_page_break" "main" {
questionnaire_id = highbond_questionnaire.main.id
position = 2
reference_id = "Break"
}
resource "highbond_question_simple" "main" {
questionnaire_id = highbond_questionnaire.main.id
text = "How do you feel at home"
instructions = "Be safe at home. Stay safe and stay home"
column_text = "No text"
optional = false
item_type = "ParagraphTextQuestion"
position = 3
}
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"
options {
text = "Safe"
}
options {
text = "Not Safe"
follow_up_questions = [
highbond_question_simple.main.id,
highbond_question_numeric.main.id
]
}
}
resource "highbond_question_numeric" "main" {
questionnaire_id = highbond_questionnaire.main.id
text = "On a scale of 1 to 10, how much do you love cats?"
instructions = "10 is the only right choice."
column_text = "Cat love number"
optional = false
scale_start = 1
scale_end = 10
label_left = "This is the beginning of the scale."
label_center = "This is the center of the scale."
label_right = "This is the end of the scale."
position = 5
}
Schema
Required
name
(String) The name of the questionnaire
Optional
collection_id
(String) The ID of the collection
email_message
(String) The content of the email notification to respondents when a questionnaire is sent. If an email_message value is not specified, there will be a default email message body
email_subject
(String) The subject of the email notification to respondents when a questionnaire is sent. If an email_subject value is not specified, there will be a default email subject
force_updates
(Boolean) Allows overriding top-level 'create_only' option.
instruction
(String) Specifies the instructions for those individuals receiving your questionnaire
linked_tables_ids
(Set of Number) The IDs of the linked tables
linked_tables_only
(Boolean) Specifies whether only allow this questionnaire to be sent from linked tables for all roles
locale
(String) A locale for questionnaire system labels. The available locales are en, de, es, fr, pt, ja, zh, el, it
position
(Number) The position of the questionnaire in a collection
reference_id
(String) Unique identifier for the questionnaire within the collection, for the question within the questionnaire, and for the response option within the choice question
respondent_view
(String) Specifies whether recipients should see information about specific records. Enum: all_records, select_records, no_records
resubmittable
(Boolean) To allow users to submit updated responses to previously assigned questionnaires without supplying an explanatory comment
weighting
(Boolean) Specifies whether the questionnaire supports weighted questions and responses
Read-Only
created_at
(String) The date the questionnaire was created
id
(String) The ID of this resource.
surveys_ids
(Set of Number) The IDs of the surveys that use this questionnaire as the primary questionnaire
updated_at
(String) The date the questionnaire was updated