peterhanse Posted March 4, 2016 Report Share Posted March 4, 2016 good morning, someone an idea? I have a Submission Form with an auto submit script ( java, see below). The problem is that if users press their back button , the form once more is added . The form used parameter so i can reset the parameters, This holding the second time a blank field. I am now looking for a script that gives a cancel button if that field is empty and overruled the autosubmit script . P.S. I can not requierd the field because he come in a loop. Regards Peter <script> document.getElementById("Submit").style.display = "none"; if(document.getElementById("caspioform")) { document.getElementById("caspioform").style.display = 'none'; setTimeout('document.forms["caspioform"].submit()',1000); } </script> Quote Link to comment Share on other sites More sharing options...
peterhanse Posted March 8, 2016 Author Report Share Posted March 8, 2016 setTimeout('document.forms["caspioform"].submit()',2000); } if (document.getElementById("nietgeldig")) { window.location="[@app:horseplanner_home]"; } </script> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.