Form Automatically Submitting after set time

Good afternoon,

I’d like to build a form that has a user answer questions, but I only want to give them 2 minutes to complete the form. At the 2 minute mark, the form is automatically submitted and the user bounced to another web page. Any advice on where to start looking to do something like this would be much appreciated! I’ve been googling for a while, but nothing found pertaining to Scriptcase directly, so maybe there is no built in way to do it?

Thanks in advance.

For these kind of questions you reall need to look at stackoverflow.com it is a great source of answers for simple questions.

[SIZE=14px]<SCRIPT LANGUAGE=“JavaScript”>[/SIZE]
[SIZE=14px]function setTimeForSubmit(){[/SIZE]
[SIZE=14px]window.setTimeout(“submitForm()”,20000);//Expire after 20 Sec[/SIZE]
[SIZE=14px]}[/SIZE]
[SIZE=14px]function submitForm(){[/SIZE]
[SIZE=14px]document.myForm.submit();[/SIZE]
[SIZE=14px]}[/SIZE]
[SIZE=14px]</SCRIPT>

or here:[/SIZE]
http://stackoverflow.com/questions/8888166/auto-submit-form-after-5-seconds

Hi rr, I’ve found much help on that site in the past for other things, but showing my ignorance here, wasn’t sure if putting this into Scriptcase was proper form. I found a lot of time-out stuff for folks wanting to close out a users session, but not much on actually submitting a form automatically. Either way, thanks so much for the tip and I’ll give it a try!