Highlighted

Hide the Email Button

fjcunninghamjr

02-12-2008

Hi,

Is it possible to hide the email button when it is clicked and have it replaced with a comment of some type, ie 'Thank you for your submission!'

Frank

Replies

Highlighted

aoatak

02-12-2008

Hi Frank,

You can do it by making your "submit by email button" invisible and putting an other regular button, which is visible. On the click event of your regular button you should write javascript that does:

1-display message

2-make regular button invisible

3-call the click event of submit by email button



Oguz

http://www.kgc.com.tr
Highlighted

pguerett

02-12-2008

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:



EmailSubmitButton1.execEvent("click");

Button1.presence = "invisible";

app.alert("Thank You for your submission!");
Highlighted

fjcunninghamjr

02-12-2008

Hi,

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.

Frank
Highlighted
Highlighted

fjcunninghamjr

02-12-2008

This is what I don so far.

I created the Submit by Email button and made the presence invisible. then I created another button (button1) and the control type is regular (not execute or submit)I then added the script



EmailSubmitButton1.execEvent("click");

Button1.presence="invisible";

app.alert("Thank You for Your Response");



to the Click option in the javascript window. Should one button be over the other button and how do I click the button to ignitate the emailing process. Nothing happens. I appreciate you help;

Frank
Highlighted

pguerett

03-12-2008

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.