Close form after submit

Avatar

Avatar
Validate 1
Level 7
kc
Level 7

Likes

0 likes

Total Posts

402 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 7
kc
Level 7

Likes

0 likes

Total Posts

402 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile
kc
Level 7

04-11-2008

Hi all,



I am not a Designer expert, so please bare with me if this is a stupid question.



I want to close the form after I have submitted the data and I want to do it with a normal submit button on the form. Is this possible, or is it at all possible to close a form (or Reader/Acrobat in general) from a button inside aform.



Thanks in advance



Sincerely

Kim

Replies

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

04-11-2008

You cannot program against a submit button......so you will have to tae your submit button and make it invisible. Then place a regular button on the form (you can program agianst that one). You can use this command to cause the submit to happen:



submitbuttonname.execEvent("click");



Now to close the doc you can use the command:



app.execMenuItem("Close")



This will close the currently active doc but will not close the hosting application (browser, Reader or Acrobat)

Avatar

Avatar
Validate 1
Level 7
kc
Level 7

Likes

0 likes

Total Posts

402 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 7
kc
Level 7

Likes

0 likes

Total Posts

402 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile
kc
Level 7

04-11-2008

Thanks Paul,



I knew the stuff with the invisible submit button, but needed the



app.execMenuItem("Close")-command, it works perfectly...



Sincerely

Kim

Avatar

04-11-2008

Hi,



Is possible use this scritp to launch a "Signature Field"?



I need to sign but not making click directly onto "signature Field", i need launch this action making click on a button.



Is possible?



Thanks.

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

04-11-2008

Nope you cannot programmatically sign a signature field. You must click on the field to sign it.