Simong Posted April 4, 2017 Report Share Posted April 4, 2017 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. Quote Link to comment Share on other sites More sharing options...
Simong Posted April 4, 2017 Author Report Share Posted April 4, 2017 Problem solved by moving the script from footer to a HTML block. 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.