- Posts: 11
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
Duh! Yeah, good idea! I couldn't see the tree because of the forest. :laugh:what do you think of a javascript in the question to test the number of line visible.
If this number is <1 then click the next button ?
// a function to get the value of a cookie by name function getCookie ( cookieName ) { var results = document.cookie.match ( '(^|;) ?' + cookieName + '=([^;]*)(;|$)' ); if ( results ) { return ( unescape ( results[2] ) ); } else { return null; } }
<script type="text/javascript" charset="utf-8"> $(document).ready(function() { function minShown(minAllowed) { // Interrupt next/submit function $('form#limesurvey').submit(function(){ var visible = $('.multiple-opt input.checkbox').length - $('.multiple-opt input.checkbox:checked').length; // If less than the minimum, clear the question and move on if(visible < minAllowed) { document.cookie = 'lsSkipQ = 1'; } else { document.cookie = 'lsSkipQ = 0'; } // Carry on with submit return true; }); } minShown(3); }); </script>
<script type="text/javascript" charset="utf-8"> $(document).ready(function() { // Retrieve the cookie var skip = getCookie ('lsSkipQ'); // If we're supposed to skip, uncheck all options and move on if(skip > 0) { $('.list-radio').hide(); $('.list-radio input,radio').attr('checked', false); document.limesurvey.move.value = 'movenext'; document.limesurvey.submit(); } }); </script>
<script type="text/javascript" charset="utf-8"> $(document).ready(function() { // Retrieve the cookie var skip = getCookie ('lsSkipQ'); // Skip previous question if(skip > 0) { $('#moveprevbtn').mousedown(function () { $('#thisstep').val($('#thisstep').val() - 1); }); } }); </script>
www.limesurvey.org/en/forum/development/...of-lime-survey#58815harshagile wrote: Hi
Do you have any idea about the limesurvey database.
I have just integrate limesurvey with my database.
But i didn't get table where all the answer stored.
I need to fetch all the response come for perticular survey
So if you have any idea abt that table name then please inform me.
tpartner wrote: It appears that you are using question-by-question mode. Is it possible to separate the questions into different groups and use group-by-group mode? If so, we would be able to use a hidden question to store the number of checked boxes in Q1 and then apply a condition to Q2.