Welcome to the LimeSurvey Community Forum

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

Time limit for question groups

  • Mazi
  • Mazi's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
9 years 2 months ago #116659 by Mazi
Replied by Mazi on topic Time limit for question groups
Please make sure that you clean your cache and cookies before testing. It's possible that the remaining time is saved at e.g a cookie and if that time is zero, the page will directly be submitted because the timer is treated as "counted down".

Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
The topic has been locked.
More
4 years 8 months ago - 4 years 8 months ago #186437 by lglobig
Replied by lglobig on topic Time limit for question groups
Sorry but do you know whether for Version 3.14 would it still be this code , where 5639 is the question ID?

<script javascript $(("#question{5639}").hide()></script>

Thanks so much!
Last edit: 4 years 8 months ago by lglobig.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 8 months ago #186449 by Joffm
Replied by Joffm on topic Time limit for question groups
Hi,

<script javascript $(("#question{5639}").hide()></script>
is not correct.
{QID} is the expression manager variable for the questionID.
So either question{QID} or the hardcoded question5639

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: lglobig
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 8 months ago #186450 by tpartner
Replied by tpartner on topic Time limit for question groups
Your code has several errors.

Code:
<script type="text/javascript" charset="utf-8">
 
  $(document).on('ready pjax:scriptcomplete',function(){
 
    $('#question{QID}').hide();
  });
</script>

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: lglobig
The topic has been locked.
More
4 years 8 months ago #186512 by lglobig
Replied by lglobig on topic Time limit for question groups
Thanks so much! This hides the timer though. Is there any way of keeping the timer ?
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 8 months ago - 4 years 8 months ago #186516 by tpartner
Replied by tpartner on topic Time limit for question groups
What exactly are you trying to do?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 4 years 8 months ago by tpartner.
The topic has been locked.
More
4 years 8 months ago #186517 by lglobig
Replied by lglobig on topic Time limit for question groups
I'd like to implement a timer (3 mins) for the question group. So I have used a "hidden question" to do that. However, I would ideally like the timer to be visible all the time while participants are solving the questions in that question group.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 8 months ago #186518 by tpartner
Replied by tpartner on topic Time limit for question groups
What question type did you use for the timer? 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 topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose