Welcome to the LimeSurvey Community Forum

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

Matriz doble eje pero vertical

More
2 years 6 months ago #258851 by blacho
Ayúdenos a ayudarle y rellene los siguientes campos:.
Su versión de LimeSurvey: 6.2.11
Servidor propio o LimeSurvey Cloud:
Plantilla de diseño utilizada: fruity
==================
Quisiera saber si puedo hacer una matriz textos de doble eje pero vertical.
Quiero tener una matriz textos y que, hayan varios títulos en la verticalidad de la misma

Please Log in to join the conversation.

More
2 years 6 months ago #258876 by Joffm
Hola,
Code:
<script type="text/javascript" charset="utf-8">             $(document).ready(function() {         // Identify this question       var thisQuestion = $('#question{QID}');       // Define the sub-heading text strings, cambia como quieres       var subHeading1 = '<span style="color:maroon;font-size:12pt;font-weight:bold">Subquestions 1-3</span>';       var subHeading2 = '<span style="color:maroon;font-size:12pt;font-weight:bold">Subquestions 4-5</span>';       var columnsLength = $('tr.subquestion-list:eq(0) > *', thisQuestion).length;         // Insert the new rows         $('tr.subquestion-list:eq(0)', thisQuestion).before('<tr class="sub-header-row"><th colspan="'+columnsLength+'">'+subHeading1+'</th></tr>');         $('tr.subquestion-list:eq(3)', thisQuestion).before('<tr class="sub-header-row"><th colspan="'+columnsLength+'">'+subHeading2+'</th></tr>');             // Fix up the row classes       var rowClass = 1;       $('table.subquestions-list tbody tr', thisQuestion).each(function(i) {             if($(this).hasClass('sub-header-row')) {                 rowClass = 1             }             else {                 rowClass++;             $(this).removeClass('array1 array2')             if(rowClass % 2 == 0) {                 $(this).addClass('array2');             }             else {                 $(this).addClass('array1');                 }             }         });     }); </script>
 

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

Moderators: holch, tpartner

Lime-years ahead

Online-surveys for every purse and purpose