We are looking to have students select a minimum of 3 check boxes.
However, when the "at least" validation is selected, it is looking for at least 3 columns to be completed - not specific, individual check boxes.
Any assistance?
Much appreciated.
TimSolved
Matrix Table - "At Least" Validation
Hello,
I'm currently trying to have students select all their availability from a matrix table for a particular service:
!
We are looking to have students select a minimum of 3 check boxes.
However, when the "at least" validation is selected, it is looking for at least 3 columns to be completed - not specific, individual check boxes.
Any assistance?
Much appreciated.
Tim
We are looking to have students select a minimum of 3 check boxes.
However, when the "at least" validation is selected, it is looking for at least 3 columns to be completed - not specific, individual check boxes.
Any assistance?
Much appreciated.
TimBest answer by ahmedA
You can use the following JS to implement it:
Qualtrics.SurveyEngine.addOnReady(function(){
that = this;
var init_ques = this.getQuestionTextContainer().innerText;
this.disableNextButton();
this.questionclick = function () {
var a = that.getSelectedAnswers();
var ch = Object.values(a).reduce(function (a, b) {
return a + b;
},0);
if(ch >=3){
that.enableNextButton();
that.getQuestionTextContainer().innerText = "Okay to proceed";
} else {
that.disableNextButton();
that.getQuestionTextContainer().innerText = init_ques;
}
}
});
Demo here.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
