- Posts: 10
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
Please Log in to join the conversation.
What could be the reason? Am I missing something?I
the participants can still choose more than 5 questions.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
<script type="text/javascript" data-author="Tony Partner"> $(document).on('ready pjax:scriptcomplete',function(){ // Number of allowed answers var answers = 5; // Identify this question var thisQuestion = $('#question{QID}'); // Listener on checkboxes $('.answer-item :checkbox', thisQuestion).on('change', function(e) { $('.answer-item :checkbox', thisQuestion).prop('disabled', false); if($('.answer-item :checkbox:checked', thisQuestion).length >= answers) { $('.answer-item :checkbox:not(:checked)', thisQuestion).prop('disabled', true); } }); // Initial states if($('.answer-item :checkbox:checked', thisQuestion).length >= answers) { $('.answer-item :checkbox:not(:checked)', thisQuestion).prop('disabled', true); } }); </script>
Please Log in to join the conversation.
However I think it will be very confusing for participants because there are other questions as well and it will take some time for them to find out what the error is.
Please Log in to join the conversation.
Please Log in to join the conversation.
Do you know what could be the reason?
Please Log in to join the conversation.
The usual reason is that you did something wrong.what could be the reason?
What is confusing if the participant sees a big red message?I think it will be very confusing for participants because there are other questions as well
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.