Have an idea?

Visit Sawtooth Software Feedback to share your ideas on how we can improve our products.

Grid question: force response at least 11 of 16 rows

Hello,
I ask 16 questions which cover a social desirability scale. I do not want to force that every row is answered, however at least 11 should be answered. Is it possible to implement this?
asked Sep 3, 2019 by mira
What input type is this question?  Radio buttons?  Checkboxes?
These are all yes/no answers, so radio buttons.

2 Answers

0 votes
If the input type in the question is composed by checkboxes (and the question type is a default select), you can set it in the "Settings" tab in Lighthouse Studio, where you force the amount of clicks allowed for all respondents.
answered Sep 3, 2019 by Mauricio Belleza Bronze (860 points)
0 votes
Set each row to not require a response, then add this custom JavaScript verification to the question:

var numberAnswered = 0;
$('input[name="hid_row_list_[% QuestionName() %]"]').val().split(',').forEach(function(row){
    if (SSI_GetValue('[% QuestionName() %]_r' + row)) {
        numberAnswered++;
    }
});
if (numberAnswered < 11) {
    strErrorMessage = 'Too few rows answered.';
}
answered Sep 4, 2019 by Zachary Platinum Sawtooth Software, Inc. (138,050 points)
...