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
BedrockMission!

Learn More

View all

Sign in to view all badges

Hide the Email Button

Avatar

Avatar
Level 2
fjcunninghamjr
Level 2

Likes

0 likes

Total Posts

18 posts

Correct Reply

0 solutions
View profile

Avatar
Level 2
fjcunninghamjr
Level 2

Likes

0 likes

Total Posts

18 posts

Correct Reply

0 solutions
View profile
fjcunninghamjr
Level 2

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

Avatar

Avatar
Boost 1
Level 4
aoatak
Level 4

Like

1 like

Total Posts

105 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 4
aoatak
Level 4

Like

1 like

Total Posts

105 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile
aoatak
Level 4

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

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

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

Avatar

Avatar
Level 2
fjcunninghamjr
Level 2

Likes

0 likes

Total Posts

18 posts

Correct Reply

0 solutions
View profile

Avatar
Level 2
fjcunninghamjr
Level 2

Likes

0 likes

Total Posts

18 posts

Correct Reply

0 solutions
View profile
fjcunninghamjr
Level 2

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

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

02-12-2008

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

Avatar

Avatar
Level 2
fjcunninghamjr
Level 2

Likes

0 likes

Total Posts

18 posts

Correct Reply

0 solutions
View profile

Avatar
Level 2
fjcunninghamjr
Level 2

Likes

0 likes

Total Posts

18 posts

Correct Reply

0 solutions
View profile
fjcunninghamjr
Level 2

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

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

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.