Hi,
please do not answer to such an old thread.
What LS version? And is your problem really similar to the first post in this thread?
Here is a different approach:
Multiple question with headers.
and selecting more than 2 -> error
Works in 2.50-2.73 and 3.6x
The script to remove the checkboxes from the "header" options.
You see the "0", "4", "7" which refer to the position of the "header" subquestion , starting with "0"
Code:
<script charset="utf-8" type="text/javascript">
$(document).ready(function() {
$( '#question{QID} .question-item:eq(0)').addClass('hide-pseudo-elements').find('input.checkbox').remove();
$( '#question{QID} .question-item:eq(4)').addClass('hide-pseudo-elements').find('input.checkbox').remove();
$( '#question{QID} .question-item:eq(7)').addClass('hide-pseudo-elements').find('input.checkbox').remove();
});
</script>
some css to indent the options
Code:
<style type="text/css">.hide-pseudo-elements label::before,
.hide-pseudo-elements label::after {
display: none;
}
.hide-pseudo-elements .label-text {
margin-left: -20px;
}
</style>
I styled the headers in the subquestions like this (but up to you)
Code:
<span style="font-size:12pt;background-color:#CCC;font-weight:bold;border: 1px solid #888;padding:2px">Part 1</span>
Regards
Joffm