July 7, 200124 yr I am trying to get a form to auto submit after a specified time. I keep getting an error 4 (in-valid commad, from Filemaker) when the java script runs. The form it's self works fine if you press the submit button. Any other ideas on how this can be done?
July 8, 200124 yr You may need to have a line, in the form, like this: <input type="hidden" name="-find"> Hope this helps. Garry
July 9, 200124 yr Author When I added the hidden entry, it will now pass it to FM without an ERROR. However, it is not passing any of the form data to FMr.. Here is the log with auto submit: 7/8/01 12:46:36 PM -DB=Students.fm4&-Format=final_complete.htm&-lay=Final&-RecID=12&-Edit 7/8/01 12:46:36 PM Sending reply. Elapsed time: 46 millisec. Here is the log with the user pressing the submit button: 7/8/01 12:44:09 PM -DB=Students.fm4&-Lay=Final&-Format=final_complete.htm&-Error=search_error.htm&-RecID=12&Final+Complete=Yes&Final+Complete+Date=7%2F8%2F01&Final+48=D&Final+49=D&Final+50=D&-Edit=Su bmit 7/8/01 12:44:09 PM Sending reply. Elapsed time: 56 millisec. Here is the one line of Java I am using: var timeID = setTimeout("document.Final.submit()", 10000) Any other ideas?
July 9, 200124 yr quote: Originally posted by Shawn Russell: I am trying to get a form to auto submit after a specified time. I keep getting an error 4 (in-valid commad, from Filemaker) when the java script runs. The form it's self works fine if you press the submit button. Any other ideas on how this can be done? For what purpose?
July 10, 200124 yr Shawn, I don't know why form elements would be going missing! Is the same form being used; i.e. button or timeout submission, whichever comes first? Garry
July 10, 200124 yr strike my last, garrycl has the right idea, <INPUT TYPE="hidden" NAME="-NEW"> [ July 10, 2001: Message edited by: dspires ]
July 14, 200124 yr Author I Guess I had a typo or something, but I was able to get it to work with the hidden entry.... Thanks!!
Create an account or sign in to comment