- Posts: 2
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
That could be done with a small jQuery plugin and a little CSS. What LS version and base template do you normally use?To make two question look like one question it would be nice to have a feature which removes the space between two question.
"11773: Remove / Reduce space between two questions (when doing workarounds)"
Personally I currently only use LS 2.06LTS with default template modified. Had the hope that after the html cleanup this feature request will be doable in LS 2.5 without too much hassle. But since you asked for template it seems to be depending on that choice too.tpartner wrote: That could be done with a small jQuery plugin and a little CSS. What LS version and base template do you normally use?
// A function to add classes to "aggregated" questions function aggregateQuestions(q1ID) { $('#question'+q1ID).addClass('aggregated-1'); $('#question'+q1ID).nextAll('div[id^="question"]:eq(0)').addClass('aggregated-2'); }
.aggregated-1 .question-wrapper { margin-bottom: 0; } .aggregated-1 .answer { padding-bottom: 0; } .aggregated-2 .answer { padding-top: 0; } .aggregated-2 .questiontext { display: none; }
<script type="text/javascript" charset="utf-8"> $(document).ready(function() { aggregateQuestions({QID}); }); </script>