I am using submission forms that contain links to other submission forms. I would like for the record being edited to be saved when the user clicks on the link to go to another form. I'm afraid the user will not click on the submit form and lose any information that has already been entered.
I have found the javascript solution for "auto submit a datapage" in the community forum. Where does this script need to be placed so that it runs before the web browser goes to the target page? Is there an event that can be used as a trigger for the javascript?
The javascript from the other post for auto submission is:
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
Kdavis
I am using submission forms that contain links to other submission forms. I would like for the record being edited to be saved when the user clicks on the link to go to another form. I'm afraid the user will not click on the submit form and lose any information that has already been entered.
I have found the javascript solution for "auto submit a datapage" in the community forum. Where does this script need to be placed so that it runs before the web browser goes to the target page? Is there an event that can be used as a trigger for the javascript?
The javascript from the other post for auto submission is:
<script type="text/javascript">
if(document.getElementByID("caspioform")) {
document.getElementByID("caspioform").style.display= 'none'
setTimeout('document.forms["caspioform"].submit()',1000); }
</script>
Link to comment
Share on other sites
3 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.