Welcome to the LimeSurvey Community Forum

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

Repeating array labels

  • Reconnect
  • Reconnect's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 3 months ago #209976 by Reconnect
Repeating array labels was created by Reconnect
I am aware that LimeSurvey repeats array labels every 25 rows in order to increase clarity. I can adjust the number of rows before a repeat of the array labels in the Global Settings.
I have two questions:
  1. Can I adjust this separately for just one survey? With CSS?
  2. Can the headings be repeated at the BOTTOM of an array, so they appear before and after the array questions? Again CSS?
Thanks!
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 3 months ago #210031 by tpartner
Replied by tpartner on topic Repeating array labels
What LimeSurvey version?

In 3.x...

1. No need for CSS, there is a question setting for that.


2. Add this script to the question source:

Code:
<script type="text/javascript" charset="utf-8">  
  $(document).on('ready pjax:scriptcomplete',function(){
    $('#question{QID} .subquestion-list tbody:last').after($('#question{QID} .subquestion-list thead').clone());
  });
</script>



Sample survey attached:

File Attachment:

File Name: limesurvey...5771.lss
File Size:27 KB

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: Reconnect
The topic has been locked.
  • Reconnect
  • Reconnect's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 3 months ago - 3 years 3 months ago #210034 by Reconnect
Replied by Reconnect on topic Repeating array labels
Thank you, Tony, for the thorough and detailed response. Very Helpful...

Jonathan Fowler
Last edit: 3 years 3 months ago by Reconnect.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 3 months ago #210035 by tpartner
Replied by tpartner on topic Repeating array labels
You're welcome. Please remove your company name - that is only allowed for registered partners.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: Reconnect
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose