Welcome to the LimeSurvey Community Forum

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

Dual Scale Array Removing Scale Headers

  • cheeseburger
  • cheeseburger's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
11 months 2 weeks ago #243336 by cheeseburger
Dual Scale Array Removing Scale Headers was created by cheeseburger
Please help us help you and fill where relevant:
Your LimeSurvey version: Version 6.0.6+230508
Own server or LimeSurvey hosting: Own server
Survey theme/template: Extending Vanilla
==================
Hi everyone, We are currently using a question of type "ARRAY DUAL SCALE (TYPE:1)". In the sidebar DISPLAY panel we include the headers for our two columns. On the desktop view these headers display correctly. In the mobile view they disappear. In earlier versions of LS they did not disappear and just are reflowed in the layout but in a logical manner. In the current version (see above) the reflow of content happens correctly but these two headers are no longer displaying. See below for reference (I also am attaching the LSS file with just this test question). Thanks for any help. If you happen to find it to be a bug, please post on our behalf since we still can't login to the bug tracker due to an outstanding issue that is being worked on with the bug tracker. Thank you!  





File Attachment:

File Name: dualSurveyHeader.lss
File Size:22 KB

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
11 months 2 weeks ago #243339 by tpartner
Replied by tpartner on topic Dual Scale Array Removing Scale Headers

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: DenisChenu, cheeseburger

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
11 months 2 weeks ago #243340 by tpartner
Replied by tpartner on topic Dual Scale Array Removing Scale Headers
In the meantime, adding this script to the question source will fix the problem.

Code:
<script type="text/javascript" data-author="Tony Partner">
 
  $(document).on('ready pjax:scriptcomplete',function(){
 
        // Identify this question
        var thisQuestion = $('#question{QID}');
 
        // Insert scale header cells
    $('tbody th.answertext', thisQuestion).after('<td class="visible-xs leftheader information-item">'+$('.dsheader:eq(0)', thisQuestion).html()+'</td>');
    $('tbody td.dual_scale_separator', thisQuestion).after('<td class="visible-xs leftheader information-item">'+$('.dsheader:eq(1)', thisQuestion).html()+'</td>');
    });
</script>

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: DenisChenu, cheeseburger

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose