Hi all,
As part of a survey to support medical research, we are trying to issue a pop-up reminder to participants if they have not answered one or more radio list questions in a question group. The questions do not have a default selection, and by the survey design, we
choose to hide the "No answer" option in the radio lists.
tpartner's code at
www.limesurvey.org/forum/can-i-do-this-w...efault-in-radio-list
works well, but only for surveys that display the "No answer" option.
How would you modify the JavaScript, or write different JavaScript, to issue the pop-up reminder if any one or more radio list questions are unanswered and we have
disabled the "No answer" option in the survey's general settings?
tpartner's code is quoted below:
Code:
<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
var confirmShown = 0;
// Interrupt the submit process
$('#movenextbtn, #movesubmitbtn').bind('click', function () {
if($('input.radio[value=""]:checked').length > 0 && confirmShown == 0) {
confirmShown = 1;
var moveOn = confirm("Some questions remain unanswered. \nDo you want to continue?");
if (moveOn == false) {
return false;
}
}
});
});
</script>