Welcome to the LimeSurvey Community Forum

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

Time limit for Survey/Question Group

  • georgehunn91
  • georgehunn91's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 4 months ago #176608 by georgehunn91
Time limit for Survey/Question Group was created by georgehunn91
Hi,

I need to have a time limit on a survey. There are 50 questions and the participant has only 45 minutes to answer as many questions as they can.

Is there a way to have a time limit on a survey or a question group so that after 45 minutes they will end up at the 'end message'.

Cheers
The topic has been locked.
  • georgehunn91
  • georgehunn91's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 4 months ago #176622 by georgehunn91
Replied by georgehunn91 on topic Time limit for Survey/Question Group
Great, is there a ‘time limit’ function?
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 4 months ago #176630 by DenisChenu
Replied by DenisChenu on topic Time limit for Survey/Question Group

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.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 4 months ago #176666 by holch
Replied by holch on topic Time limit for Survey/Question Group

Great, is there a ‘time limit’ function?

Only for questions, not for the whole survey.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 4 months ago #176709 by DenisChenu
Replied by DenisChenu on topic Time limit for Survey/Question Group

holch wrote:

Great, is there a ‘time limit’ function?

Only for questions, not for the whole survey.

In previous version : using time limit / movenext work on group by group mode : on question with movenext on time limit movenext for all group :)

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.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 4 months ago #176714 by holch
Replied by holch on topic Time limit for Survey/Question Group
Yes, but from what I understood, here it should be for the whole survey. So then you would have to use the all in one mode to achieve this, which is generally not very practical.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • georgehunn91
  • georgehunn91's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 4 months ago #176721 by georgehunn91
Replied by georgehunn91 on topic Time limit for Survey/Question Group
I was thinking to put all the questions in one group, questions displayed after each other and then have the group expire after 45 minutes.
Would that work and how would I write that ie.

{time_limit} ?? would I write it in the Relevance equation for the question group?
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 4 months ago #176722 by holch
Replied by holch on topic Time limit for Survey/Question Group

I was thinking to put all the questions in one group, questions displayed after each other


This won't work. The timer is only valid for ONE specific question. If this question is in the same group as other questions AND this group is shown as one (one page for all "group by group"), then it might work, but not if you put them all in one group, but show them in the mode "question by question" it won't work.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The following user(s) said Thank You: DenisChenu
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 4 months ago #176730 by DenisChenu
Replied by DenisChenu on topic Time limit for Survey/Question Group
If you need a question by question mode with such system, i think you need make your own system.

1st idea :
in 1st group, 2 question hidden
- equation TimeStart : {if(is_empty(self.NAOK),strtotime(date("now")),self.NAOK)}
- short text hidden TimeCurrent
Between each question :
- equation question TimeSet1 (1 increment for each question) : {TimeCurrent=strtotime(date("now"))}

All question (TimeSet too) have this relevance equation : {(TimeCurrent-TimeStart) <= 45*60}

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 following user(s) said Thank You: georgehunn91
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 4 months ago #176798 by tpartner
Replied by tpartner on topic Time limit for Survey/Question Group
Nice!

But, wouldn't that just render questions irrelevant, instead of submitting the survey?

You would also want to add a text-display question with the opposite relevance stating that the survey time limit has been exceeded.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 4 months ago #176801 by DenisChenu
Replied by DenisChenu on topic Time limit for Survey/Question Group
In question by question mode : irrelevant question are just removed, then click on move next => goes to end of page.

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.
More
5 years 1 month ago - 5 years 1 month ago #180597 by Apouxx
Replied by Apouxx on topic Time limit for Survey/Question Group
Another solution could be to put each question in a separate group.

I was wondering, can we display this timer somehow ?

I used "DenisChenu"s method and it works great
Last edit: 5 years 1 month ago by Apouxx.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose