Jump to content

Autosubmit Script Gives Double Records As A Back Button Is Used


Recommended Posts

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>

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...