Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Hide the Email Button

Avatar

Level 2
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
0 Replies

Avatar

Level 4
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

Avatar

Level 10
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!");

Avatar

Level 2
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

Avatar

Level 10
You cannot program the email submit button .....if it is invisible it is still there you just can't see it.

Avatar

Level 2
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

Avatar

Level 10
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.