Welcome to the LimeSurvey Community Forum

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

Automatically proceed to next question after selecting answer _with_ time limit

  • morenomancosu
  • morenomancosu's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 1 month ago #181218 by morenomancosu
Dear all,

I have a question (list radio buttons), and I would like the user to proceed to the following question right after selecting the answer. Also, if the user does not answer in 10 secs, I would like the system to move on to the next question (in this case, it seemed ok for me to employ the "Time limit" option).

In order to automatize the "next question" after clicking on a choice, I used the code here (found in this forum):

Code:
<script type="text/javascript" charset="utf-8">  
  $(document).ready(function(){
 
    $('#question{QID} input.radio').click(function() {
      checkconditions($(this).attr('value'), $(this).attr('name'), $(this).attr('type'))
      $('#movenextbtn, #movesubmitbtn').trigger('click');
    });
  });
</script>

The code works well, but only if I do not select the "Time limit" option. If I select it, the survey proceeds automatically throughout all the questions of the group in a few moments, basically impeding the user to press anything.

Is there any way to fix this (unfortunately I'm not a JS pro)?

Thanks in advance!
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 1 month ago #181231 by tpartner
What is your LimeSurvey version?

Can you attach a small sample survey (.lss file) containing only the relevant questions.

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: morenomancosu
The topic has been locked.
  • morenomancosu
  • morenomancosu's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 1 month ago #181242 by morenomancosu
Hi Tony and thank you for your answer,

the LimeSurvey version I'm using is 2.50+ (Build 160317).

I attach to this message the .lsq of the question and the .lss. Hope this helps in solving the issue.

Thanks again!

Moreno
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose