- Posts: 1
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
<script type="text/javascript" charset="utf-8"> $(document).ready(function() { // Identify this question var thisQuestion = $('#question'+{QID}+''); // The attribute values var attribute1 = '{TOKEN:ATTRIBUTE_1}'; var attribute2 = '{TOKEN:ATTRIBUTE_2}'; var attribute3 = '{TOKEN:ATTRIBUTE_3}'; var attribute4 = '{TOKEN:ATTRIBUTE_4}'; var attribute5 = '{TOKEN:ATTRIBUTE_5}'; if(attribute1 == '') { $('li.question-item:eq(0)', thisQuestion).hide(); } if(attribute2 == '') { $('li.question-item:eq(1)', thisQuestion).hide(); } if(attribute3 == '') { $('li.question-item:eq(2)', thisQuestion).hide(); } if(attribute4 == '') { $('li.question-item:eq(3)', thisQuestion).hide(); } if(attribute5 == '') { $('li.question-item:eq(4)', thisQuestion).hide(); } }); </script>
<script type="text/javascript" charset="utf-8"> $(document).ready(function() { // Identify this question var thisQuestion = $('#question'+{QID}+''); if({Q1.NAOK} == '1') { $('li.question-item:eq(3)', thisQuestion).hide(); $('li.question-item:eq(4)', thisQuestion).hide(); $('li.question-item:eq(5)', thisQuestion).hide(); $('li.question-item:eq(6)', thisQuestion).hide(); } }); </script>