Welcome to the LimeSurvey Community Forum

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

Kiosk survey that resets

  • BHS_Kez
  • BHS_Kez's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 2 months ago #193550 by BHS_Kez
Kiosk survey that resets was created by BHS_Kez
Hello,

I need to create a survey that can be used in a browser as a kiosk set up.

I work with a school and during parents evenings the parents are given a link to complete a survey on their evenings' experience. However, very few actually do it so, I've been asked to create a kiosk-style one they can do on their way out the door.

I can't seem to find any setting to do this, would it be something I would have to get a plugin for?

The basic functions I need are:

Survey to restart on completion
Survey to reset after being inactive for 30-60 seconds (in case they wander off without finishing)
Have a simple interface and a popup onscreen keyboard for the 'any other comments' section.

Any help would be greatly appreciated, thank you.

Kez
The topic has been locked.
More
4 years 2 months ago #193608 by fvanderstarre
Replied by fvanderstarre on topic Kiosk survey that resets
Hi,

"Survey to restart on completion" : enter you survey's URL as end-URL, and set end-URL to load automatically (after finishing).
"Survey to reset after being inactive for 30-60 seconds " : No idea....?
"Have a simple interface": that's up to you as survey designer
"popup onscreen keyboard": you can set this somewhere in General settings - Presentation and navigation, something like "keyboardless execution".
Hope this helps a bit!

Frank
The following user(s) said Thank You: BHS_Kez
The topic has been locked.
  • BHS_Kez
  • BHS_Kez's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 2 months ago #193611 by BHS_Kez
Replied by BHS_Kez on topic Kiosk survey that resets
Thank you for helping.
I'm going to need to dig about to find how to get the survey to reset after inactivity.
I wonder if it can be done in the browser itself to auto-refresh, as long as I turn off the feature that lets the user continue from where they last stopped, it should just go back to the start of the survey
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 2 months ago #193617 by tpartner
Replied by tpartner on topic Kiosk survey that resets
To get it to reset after inactivity, try placing something like this in your theme custom.js file:

Code:
$(document).on('ready pjax:scriptcomplete',function(){
  // Delay before redirecting in seconds
  var sleepTime = 60;
 
  var redirectTimeout;
 
  function startTimer() {
    redirectTimeout = setTimeout(function() {
      window.location.href = 'http://pathTo/limeSurvey/index.php/123456?newtest=Y';
    }, sleepTime*1000);
  }
 
  function stopTimer() {
    clearTimeout(redirectTimeout);
  }
 
  startTimer();
 
  $('input, textarea, button').on('click change keyup', function(e) {
    stopTimer();
    startTimer();
  });
 
});

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