+ 3

How to redirect to an empty form after 2 mins of inactivity with JS?

At work we have this form (survey) sitting on a booth. The problem we need to solve is that whenever a customer leaves without filling out the whole form, we don't have a way to automatically redirect to the link of an empty version of it, so when a new customer arrives he/she doesn't get confused. Please help!

12th Apr 2019, 2:06 PM
Winser Espinal Herrera
Winser Espinal Herrera - avatar
2 Answers
12th Apr 2019, 4:15 PM
CalviŐ˛
CalviŐ˛ - avatar
+ 4
setTimeout(function() { document.forms[0].submit(); },1000*60*2);
12th Apr 2019, 3:37 PM
Sarthak Pokhrel
Sarthak Pokhrel - avatar