I have a datapage for mileage where staff enter the date, passenger, location from, location to, and number of miles. The passenger is an AutoComplete field that pulls from a table of clients, and the date has a calendar popup.
I am trying to deploy this multiple times on one site so that staff can enter more than one line at a time. I have embedded the code from Caspio three times, and the page shows up three times, but there are issues. The AutoComplete function and the calendar popup only work on the first form.
I hid the original submit buttons and found this script to submit multiple forms at once:
<script> function submitallforms() { setTimeout('document.forms[0].submit()',100); setTimeout('document.forms[1].submit()',200); setTimeout('document.forms[2].submit()',300); } // End --> </script>
When I submitted mileage in all three rows, only the data entered in the first and third form showed up on my table -- nothing from row/form 2 came through. Below is everything I have entered for this page:
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.
Question
ababcock
I have a datapage for mileage where staff enter the date, passenger, location from, location to, and number of miles. The passenger is an AutoComplete field that pulls from a table of clients, and the date has a calendar popup.
I am trying to deploy this multiple times on one site so that staff can enter more than one line at a time. I have embedded the code from Caspio three times, and the page shows up three times, but there are issues. The AutoComplete function and the calendar popup only work on the first form.
I hid the original submit buttons and found this script to submit multiple forms at once:
<script>
function submitallforms() {
setTimeout('document.forms[0].submit()',100);
setTimeout('document.forms[1].submit()',200);
setTimeout('document.forms[2].submit()',300);
}
// End -->
</script>
<input type=button value="Submit" onclick="submitallforms();">
When I submitted mileage in all three rows, only the data entered in the first and third form showed up on my table -- nothing from row/form 2 came through. Below is everything I have entered for this page:
Link to comment
Share on other sites
8 answers to this question
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.