I have a tabular report with a details page. The details page has a script that runs when the form is submitted via Caspio's Update button (using 'onsubmit'). The details page also includes Caspio's Back button. The problem I have is that the script runs when either the Update button OR the Back button is clicked. I would have thought the 'onsubmit' script should only fire when the Update button is pressed. Am I missing something?
Here is the code:
function CheckSubmit()
{
alert("running the OnSubmit script!");
}
document.getElementById("caspioform").onsubmit=CheckSubmit;