Hi all, I am writing a consent form in the beginning of the survey and I want the participants to check two cheekbones. If they don't select both of them, the can't pass page (similar to a force response). I don't want to send them to the end of the survey, I just want to not allow them to pass the page. I have the following html for the two checkboxes.
I have been looking codes on the internet but no-one works for me. Can anyone help me please?
Thank you!
Solved
Allow to pass page if two out of two checkboxes are selected
Best answer by rondev
Paste the below code in the descriptive text question JS onReady part:
var that =this;
that.disableNextButton();
jQuery("#"+that.questionId+" input[type='checkbox']").on('click',function(){
if(jQuery("#agree1").prop("checked") && jQuery("#agree2").prop("checked"))
that.enableNextButton();
else
that.disableNextButton();
});
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
