Welcome to the LimeSurvey Community Forum

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

Custom array row depending on the subquestions shown

  • eniisula
  • eniisula's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
3 years 2 months ago #227373 by eniisula
Please help us help you and fill where relevant:
Your LimeSurvey version: Version 5.3.9+220411
Own server or LimeSurvey hosting: own
==================
Here I have attached my .lss export. What I want to achieve is that, I want the subquestion with code AO22 (Internet 5G / Gigabit Net) to be selectable only for subquestion with code SQ003 (vodafone) from the question Mint.3 . There could be one case that vodafone may not be selected at all and the subquestion with code AO22 (Internet 5G / Gigabit Net) should not be selectable for other cases such as One and Albtelecom.

If anyone could figure it out what could solve this, I would be really grateful!

Thank you in advance!

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 2 months ago #227383 by Joffm
Remove the checkboxes with
Code:
<script type="text/javascript" charset="utf-8">
     $(document).ready(function() {
    // Remove in row 1
    $('#question{QID} tr[id^="javatbd"]:eq(0) .checkbox-item:eq(0) *').remove();
    $('#question{QID} tr[id^="javatbd"]:eq(0) .checkbox-item:eq(1) *').remove();
  });
</script>

 

Don't display the entire row (if Vodafone was not selected) with subquestion relevance.
 

 

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: eniisula

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose