Copy link to clipboard
Copied
I've created a PDF form with a submit button that will email a completed form to a specified address. I have also incorporated a check box that requires members to acknowledge prior to submission that will prompt an alert if the box isn't checked when they hit the submit button.
Additionally, I have added a menu action to close the page after the user hits submit. However, the page's behaviour currently is to close the PDF regardless after the alert for non-acknowledgement pops up.
Is there a way to stop the "close PDF" action from completing unless the javascript that submits the form successfully runs?
Thanks.
No. You have to do it all in a single script. Then you could add conditional statements and control the order in which the commands are executed.
Copy link to clipboard
Copied
No. You have to do it all in a single script. Then you could add conditional statements and control the order in which the commands are executed.