Skip to content

Possibility to make survey a forced choice. #678

Answered by jodeleeuw
arnohakk asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @arnohakk ,

I believe you can set required: true for any item in the questions array. Such as:

var scale_1 = [
  "Strongly Disagree", 
  "Disagree", 
  "Neutral", 
  "Agree", 
  "Strongly Agree"
];

var likert_page = {
  type: 'survey-likert',
  questions: [
    {prompt: "I like vegetables.", name: 'Vegetables', labels: scale_1, required: true},
    {prompt: "I like fruit.", name: 'Fruit', labels: scale_1, required: true},
    {prompt: "I like meat.", name: 'Meat', labels: scale_1, required: true},
    {prompt: "I like dairy.", name: 'Dairy', labels: scale_1, required: true}
  ],
  randomize_question_order: true
};

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jodeleeuw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #678 on May 11, 2020 21:05.