Welcome to the LimeSurvey Community Forum

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

How to set time limit to complete survey

More
9 months 3 weeks ago #271311 by satyam123
Please help us help you and fill where relevant:
LimeSurvey version: 6+
Own server or LimeSurvey Cloud: Cloud
Survey theme/template:
==================
Hi,

Can I implement time limte in my survey. For example I need set a minimum 10-minute timer on survey link so that it cannot be submitted before 10 minutes.

Thanks & Regards,

Please Log in to join the conversation.

More
1 month 2 weeks ago #274200 by mmckone
Hi did you ever get a response to this question? I also want to implement a minimum time limit.

Please Log in to join the conversation.

More
1 month 2 weeks ago - 1 month 2 weeks ago #274224 by Joffm
Well,
the workflow is quite easy.
Store the time at the start of the survey.
In the last question take the time again, calculate the difference (in milliseconds) and if it is less than 10 minutes use 
Code:
<script type="text/javascript" charset="utf-8">
    $(document.ready(function(){
        $('#ls-button-submit').hide();
        setTimeout(function(){
            $('#ls-button-submit').show();
        },10000-difference);// value in milliseconds
    });
</script>
to hide the submit button for the rest of time..

But why?
To avoid speeders? No problem, I click through the survey, then go to the kitchen, have a coffee, read the newspaper and then I submit the survey.
This is the first lesson a member of a panel learns.

I admit this can be useful if you want to display a text or an image for a certain time.

Better you have a look at the timing statistics.to find speeders.

Joffm

 

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 1 month 2 weeks ago by Joffm.

Please Log in to join the conversation.

More
1 month 1 week ago #274245 by holch
Joffm, people use Limesurvey for all kind of things, e.g. tests / exams with a certain time limit.

To implement that, things would be a little bit more complicated, I guess. You probably would have to include a hidden question in each "page" of the survey and check against the start time and then close the survey somehow.

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.

Please Log in to join the conversation.

More
1 month 1 week ago #274247 by Joffm
I know,
but this was the requirement

I need set a minimum 10-minute timer on survey link so that it cannot be submitted before 10 minutes.

and the follow up

I also want to implement a minimum time limit.


So we do not know what exactly the goal is.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose