diff --git a/assets/scripts/multiplechoice_withcomments.js b/assets/scripts/multiplechoice_withcomments.js index 88946f1106d..366fff9edf4 100644 --- a/assets/scripts/multiplechoice_withcomments.js +++ b/assets/scripts/multiplechoice_withcomments.js @@ -18,7 +18,8 @@ var doMultipleChoiceWithComments = function(qID,when) question.on('keyup focusout',':not(.other-item) input:text',function(event){ var checkboxinput=$("#answer"+$(this)[0].name.replace("comment","")); if($(this)[0].value==""){ - checkboxinput[0].checked=false; + // Do nothing in this case - if the question is mandatory, it should still be possible to + // submit a checked box without a comment. }else{ checkboxinput[0].checked=true; }