Welcome to the LimeSurvey Community Forum

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

timer

  • benshuo
  • benshuo's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 5 months ago #207652 by benshuo
timer was created by benshuo
Dear all,
I want to use LimeSurvey to test whether my platform is useful, so I insert the web link in it. To make sure participants really use it before answer the questions, I would like to set up a timer. For example, they have to view the platform for at least 5 minutes, then there will be a warning to let users choose to continue to view the platform or back to the questions. I view some experience that the "time_limit" function can achieve the goal. However, I didn't find where it is. Is it a button or do I need to code? I'd appreciate it that someone can help me. I attach my file, the link is in front of part 3. Thanks.

Benshuo Wang
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 5 months ago #207675 by Joffm
Replied by Joffm on topic timer
How do you imagine this to work?
You open your web page with a link and target="_blank".
So I think you are not able to avoid the closing of this (different) page from inside LimeSurvey.

If you add it as an IFrame in a question of type "text display" and a separate group this might work.
<iframe allowfullscreen="" frameborder="0" height="800" src="https://your page.nl/public/index.php/" width="100%">

Add this javascript snippet
Code:
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){
    $('#ls-button-submit').hide();
  setTimeout(function () {
                 $('#ls-button-submit').show();
 
  }, 300000);
});
</script>
It will hide the submit button for 5 minutes = 300000milliseconds.



But there are other things.
Is there a special reason that you force your respondents to scroll and scroll and scroll?
The majority of the questions in parts 2-4 you can replace by some array questions.

But - of course - up to you.

Joffm

Please, if you send a lss export, include only the relevant questions (not 105).

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • benshuo
  • benshuo's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 5 months ago #207685 by benshuo
Replied by benshuo on topic timer
Dear Joffm,
Thanks for your reply. I follow your suggestion insert the link. I'm not sure where to put the javascript, do you mean this? I preview the question group and don't find the timer. Thanks


Benshuo Wang
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 5 months ago #207686 by Joffm
Replied by Joffm on topic timer

If you add it as an IFrame in a question of type "text display" and a separate group this might work.

1. You have to create a new group before "Part 3" with one question of type "text display". Here you add the IFrame and the script.
2. You do not see a timer because there is no.
You hide the "Next"-button for a certain time.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • benshuo
  • benshuo's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 5 months ago #207696 by benshuo
Replied by benshuo on topic timer
Dear Joffm,
Thanks, it works!

Benshuo Wang
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose