Jump to content

Recommended Posts

I have 2 forms. On submitting the 1st one, it continues to the 2nd one, and the 2nd one does auto submit using a script:
if(document.getElementById("caspioform")) 
{
document.getElementById("caspioform").style.display = 'none';
setTimeout('document.forms["caspioform"].submit()',2000);
}

several fields in the 2nd form are passed from the 1st form as external parameters.
when I disable the auto submit script and do it manually, it works fine. But when I enable the auto submit script, I am getting an error from the 2nd form:
"Values in one or more fields are invalid."

and the submitting of 2nd form just going over and over. 
Despite of the error message, the 2nd form submission was actually successful.  I can see all the fields are filled correctly in the table. 

I actually did the same thing before in another data page, but I couldn't tell what is different between them. It just doesn't work anymore.

Any ideas will be appreciated.

Thanks.

Share this post


Link to post
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...

×
×
  • Create New...