RonAnderson Posted November 9, 2022 Report Share Posted November 9, 2022 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> Quote Link to comment Share on other sites More sharing options...
autonumber Posted November 11, 2022 Report Share Posted November 11, 2022 Hi, @RonAnderson - could you try the script below? You can set the 'Destination after record submit:' to display a message > disable HTML editor and paste this code: Your submission was successful. <script> setTimeout(function () { window.location.href = "DataPageURL"; }, 2000); </script> Quote Link to comment Share on other sites More sharing options...
RonAnderson Posted November 18, 2022 Author Report Share Posted November 18, 2022 Hi @autonumberI didn't realise you could place javascript on the destination message page. It worked great. Thanks so much Quote Link to comment Share on other sites More sharing options...
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.