Jump to content
  • 0
Sign in to follow this  
Kdavis

Auto submit submission datapage

Question

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>

 

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

I didn't think about setting up the submit button to do that.  

I broke up the original data page into multiple data pages due to performance fields from the number of fields.  There are several hyperlinks to other data pages.  That won't work with a single submit button.    

I could redesign the pages so that the user goes through the pages sequentially though.

Is that the only alternative?

 

 

Share this post


Link to post
Share on other sites

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.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...