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.