Welcome to the LimeSurvey Community Forum

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

Next button doesn't work

  • katoyan
  • katoyan's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 3 weeks ago #133373 by katoyan
Next button doesn't work was created by katoyan
Hi everyone, I have some issue with moving forward (on next) page by clicking "Next" button.
I have really big survey, at first question I have matrix(number) type, with 53 different subquestions (y-scale), and 2 subquestions (x-scale). If recipient choose value 4 for, I have to show subquestions based on this answer at next fourth question. "Next fourth" - is matrix(number)*2 with checkboxes view and multiple choice*2. I use JS for showing subquestions and it works fine, please find the code below
Code:
$('document').ready(function(){
 
 $('#question1204 li').css('display', 'none');//1
 $('#question1259 tr').css('display', 'none');//1
 $('#question1315 li').css('display', 'none');//2
 $('#question1370 tr').css('display', 'none');//2
 $('#question1259 thead tr').css('display', 'table-row');
 $('#question1370 thead tr').css('display', 'table-row');
 
 $(".answer_cell_001 .multiflexiselect").change(function() {
   var answerText = $.trim(this.parentElement.parentElement.childNodes[1].textContent);
   if (this.value == 4) {
   $( "#question1259 .answertext:contains('" + answerText + "')").parent().css('display','table-row');
   $( "#question1204 .answertext:contains('" + answerText + "')").parent().css('display', 'block');
   }
 })
 
 $(".answer_cell_002 .multiflexiselect").change(function() {
  var answerText = $.trim(this.parentElement.parentElement.childNodes[1].textContent);
   if (this.value == 4) {
   $( "#question1370 .answertext:contains('" + answerText + "')").parent().css('display','table-row');
   $( "#question1315 .answertext:contains('" + answerText + "')").parent().css('display', 'block');
   }
 })
});
</script>

So the troubles star when I click "Next button", page just reload and doesn't move forward to next question group. I can fix this issue by changing the type of "Next fourth" from matrix(number) to matrix, but I lose ability to multiple choice in row.

Can somebody provide information how can I fix this or something? I use LS 2.06+ Build 151126
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 3 weeks ago #133388 by DenisChenu
Replied by DenisChenu on topic Next button doesn't work
Hard to tell without see the example .... in real.

Maybe some javascript error

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • katoyan
  • katoyan's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 3 weeks ago #133391 by katoyan
Replied by katoyan on topic Next button doesn't work
Hi Denis,
Thank you for your answer, infact where is no JS errors, but MySQL maximum number of 1000 columns limit, and I deplete this limit.
mb you have some solution to get round of this limit?
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose