- Posts: 10
- Thank you received: 1
Ask the community, share ideas, and connect with other LimeSurvey users!
var outTimer; var alertTimer; var countTimer; var idleTime = 0; var surveyTimeOut = 10; $(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(surveyTimeOut && surveyTimeOut <= idleTime) { $("form#limesurvey [name='saveall']").click(); } }