Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Titles for subquestions

More
6 years 5 months ago #181935 by tpartner
Replied by tpartner on topic Titles for subquestions
What have you tried?

Can you attach a small sample survey (.lss file)?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
More
6 years 5 months ago #181984 by tixeon
Replied by tixeon on topic Titles for subquestions
I have tried the script at: www.limesurvey.org/forum/design-issues/1...tions?start=0#147393

LSS attached

File Attachment:

File Name: limesurvey...6833.lss
File Size:24.27 KB
The topic has been locked.
More
6 years 5 months ago - 6 years 5 months ago #182027 by tpartner
Replied by tpartner on topic Titles for subquestions
This works in 3.16.x:

Code:
<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>



Sample survey attached:

File Attachment:

File Name: limesurvey...8331.lss
File Size:25.08 KB

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 6 years 5 months ago by tpartner.
The following user(s) said Thank You: krosser
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose