Jump to content

ATTMEX

Members
  • Content Count

    1
  • Joined

  • Last visited

  1. Hi guys, I know the only way to create records in multiple table is by auto-submission, so I followed this script which works great: <script type="text/javascript"> if(document.getElementById("caspioform")) { document.getElementById("caspioform").style.display = 'none'; setTimeout('document.forms["caspioform"].submit()',1000); } </script> However when auto-submission fails (user tries to create the same record twice with a unique field) the error message says the "record already exists" and loops endlessly. Either I create some way to detect that the record already exists and therefore redirect my user to an update form or handle the error message once and move on to the update form. Any ideas on how to handle this problem?
×
×
  • Create New...