- Posts: 11
- 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(){
var templatePath = $('head link[href*="template.css"]').attr('href').replace(/template.css/, '');
// Apply images to Group 1 $("input#answerYYYYXYYYYXYYYYYY").imageTick({
// Image to use as a selected state of the checkbox
tick_image_path: templatePath+"Blankbutton.png",
// Image to use as a non-selected state
no_tick_image_path: templatePath+"Blankbutton.png",
// Class to apply to all checkbox images that are dynamically created
image_tick_class: "checkboxes"
});
});
</script>
You could do that with with JavaScript but without knowing the structure of your template it's impossible to give a code example.My next question - is it possible to randomize the answers within groups and then randomize between groups? Thanks so much!
<script type="text/javascript" charset="utf-8"> $(document).on('ready pjax:scriptcomplete',function(){ // First Row $('#question{QID} .question-item:eq(0)').addClass('sub-header').find('input').remove(); // Fifth Row $('#question{QID} .question-item:eq(4)').addClass('sub-header').find('input').remove(); // Ninth Row $('#question{QID} .question-item:eq(8)').addClass('sub-header').find('input').remove(); // Fourteenth Row $('#question{QID} .question-item:eq(13)').addClass('sub-header').find('input').remove(); }); </script> <style> .question-item.sub-header, .question-item.sub-header label { padding: 0; margin-bottom: 0; } .question-item.sub-header label::before, .question-item.sub-header label::after { display: none; } </style>