Expand my Community achievements bar.

SOLVED

Script to prevent email submission

Avatar

Level 9

I have an email button on the form with a script that checks to see if one of the two radio buttons were selected by the user. If neither was selected, the script prevents the email and sets the focus to the radio button.

How can i do this with Pre-Submit? I am trying to prevent the user from sending the form by email using the Share feature in Acrobat. I can write the script but do not understand how to cancel the submit action if neither radio button was selected.

1 Accepted Solution

Avatar

Correct answer by
Level 10

There is a validate element available that can prevent actions like printing or submitting when mandatory fields are empty.

Here's a description.

http://forms.stefcameron.com/2008/04/13/prevent-printing-pdf-forms-in-acrobat-8/

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

There is a validate element available that can prevent actions like printing or submitting when mandatory fields are empty.

Here's a description.

http://forms.stefcameron.com/2008/04/13/prevent-printing-pdf-forms-in-acrobat-8/