Yes ....but I would put a second button on the form that is visible to the user and make the actual email submit button invisible. This way you can program the visible button. I added this code to the click event:
I not sure I follow the script. If I make the email submit button invisible, how can it be clicked. Maybe it would be easier for me to put text under the email button and have the email button become invisible after its clicked.
That code assumes that your email button is called EmailSubmitButton and the extra button is called Button1. If your buttons are named differently then modify the code to reflect the new names. The placement of the invisible button doesn't matter. Make sure you save your form as a dynamic PDF form. If you are using Acrobat you can hit the Ctrl-J key to bring up the java console and see if any errors are being generated.