- Posts: 26
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
redirect to survey start page
- rvenkat
- Topic Author
- Offline
- Junior Member
Less
More
6 years 1 month ago #165317
by rvenkat
redirect to survey start page was created by rvenkat
We are hosting a survey on an iPad kiosk. It takes about 5 minutes to complete and so we expect some people to dropout before completing the survey.
After a participant submits a response, we can redirect back to start of the survey. No problem here.
How can we redirect to the welcome page, if there is no activity on page for, say, a couple of minutes? If a participant just walks away from the kiosk (which is unattended), I would like the survey go back to the welcome page for the next participant.
I am thinking of a solution where a box drops and asks the survey participant if they want to continue after 60 seconds idle time. If there's no response for another 60 seconds, it should go redirect to the welcome page.
Any tips on how do this would be greatly appreciated.
Thanks,
rv
After a participant submits a response, we can redirect back to start of the survey. No problem here.
How can we redirect to the welcome page, if there is no activity on page for, say, a couple of minutes? If a participant just walks away from the kiosk (which is unattended), I would like the survey go back to the welcome page for the next participant.
I am thinking of a solution where a box drops and asks the survey participant if they want to continue after 60 seconds idle time. If there's no response for another 60 seconds, it should go redirect to the welcome page.
Any tips on how do this would be greatly appreciated.
Thanks,
rv
The topic has been locked.
- tpartner
- Away
- LimeSurvey Community Team
Less
More
- Posts: 10106
- Thank you received: 3593
6 years 1 month ago - 6 years 1 month ago #165324
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic redirect to survey start page
You may be able to use a plugin like jquery-idletimer (
github.com/thorst/jquery-idletimer
), but it may require some extra development if the iPad is allowed to go to sleep while the idle-timer is counting down. (so, in your example, if the iPad is allowed to go to sleep in under 120 seconds of inactivity)
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 6 years 1 month ago by tpartner.
The following user(s) said Thank You: rvenkat
The topic has been locked.
- rvenkat
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 26
- Thank you received: 0
6 years 1 month ago #165325
by rvenkat
Replied by rvenkat on topic redirect to survey start page
Hi Tony,
Thanks for the tip.
I'll give it a try.
rv
Thanks for the tip.
I'll give it a try.
rv
The topic has been locked.
- blocka
- Offline
- Platinum Member
Less
More
- Posts: 409
- Thank you received: 34
5 years 5 months ago #176568
by blocka
Replied by blocka on topic redirect to survey start page
If anyone can provide a working example of how this can be accomplished within a LS template, that would be awesome! We often run survey on tablets in Kiosk mode, and definitely it would be great if idle time reaches some specific threshold.
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13637
- Thank you received: 2491
5 years 5 months ago - 5 years 5 months ago #176571
by DenisChenu
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.
Replied by DenisChenu on topic redirect to survey start page
I have a script for this, something like this
Complet code is here : gitlab.com/sondagespro_oecd/oecdMenu/blo...ecdInitiative.js#L21
Code:
$(document).ready(function() { var idleInterval = setInterval(timerIncrement, 60 * 1000); // One minute 60 * 1000 }); $(document).on('click keypress mousemove scroll',function(){ idleTime = 0; }); function timerIncrement() { idleTime = idleTime + 1; if(10 <= idleTime) { window.location = "/12345?newtest=Y"; } } }
Complet code is here : gitlab.com/sondagespro_oecd/oecdMenu/blo...ecdInitiative.js#L21
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.
Last edit: 5 years 5 months ago by DenisChenu.
The topic has been locked.
- tpartner
- Away
- LimeSurvey Community Team
Less
More
- Posts: 10106
- Thank you received: 3593
5 years 5 months ago #176573
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic redirect to survey start page
Does that work if the device goes to sleep?
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13637
- Thank you received: 2491
5 years 5 months ago #176579
by DenisChenu
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.
Replied by DenisChenu on topic redirect to survey start page
Didn't know … original code is most used on desktop (IE browser too).tpartner wrote: Does that work if the device goes to sleep?
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.