Welcome to the LimeSurvey Community Forum

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

Survey as a table - answer only for the selected question

  • michael1834x
  • michael1834x's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 7 months ago - 3 years 7 months ago #205224 by michael1834x
Hi,

I create table question - I chose the default question table options from limesurvey


Currently, queries on the y axis multiply by answers the x axis

Can I do this to:?

Question1Answer1Answer2Answer3
Question1Answer1Answer2
Question1Answer1Answer2
Last edit: 3 years 7 months ago by michael1834x.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 7 months ago #205227 by Joffm
Hi,
what is

I chose the default question table options from limesurvey


If you really talk of an array you may use this
Code:
<script type="text/javascript" charset="utf-8">  
   $(document).ready(function() {
    // Remove row 2, radio 3
    $('#question{QID} tr[id^="javatbd"]:eq(1) .radio-item:eq(2) *').remove();
    // Remove row 3, radio 3
    $('#question{QID} tr[id^="javatbd"]:eq(2) .radio-item:eq(2) *').remove();
  });
</script>


If you talk about an array(text) or an array(numbers) it is different
Code:
<script type="text/javascript" charset="utf-8">
 
  $(document).ready(function() {
 
    // Remove row 2, x-axis code "X003"
    $('#question{QID} tr.subquestion-list:eq(1) .answer_cell_X003 *').remove();
 
    // Remove row 3, x-axis code "X003"
    $('#question{QID} tr.subquestion-list:eq(2) .answer_cell_X003 *').remove();
 
  });  
</script>


You did not mention your version.
This all is for LimeSurvey version 3.x.


Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: michael1834x
The topic has been locked.
More
3 years 6 months ago #205523 by sakirdo
it is interesting for me too
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose