Jump to content

Using a Submission Form, how do I show a successful submission message when using 'Same Form' for the destination?


Recommended Posts

I found the following code but it doesn't show the alert message on successful submission. I've come across the "BeforeFormSubmit" but that doesn't work because the message "Form was submitted" shows before the app checks for required fields and if a field was missed the "Required Fields" error message show and submission isn't completed.

<SCRIPT LANGUAGE="JavaScript">
function myFunction()
{
alert ('Form was submitted')
}
document.getElementById("caspioform").onsubmit = myFunction;
</SCRIPT>
Link to comment
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
Reply to this topic...

×   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...
×
×
  • Create New...