Highlighted

Close form after submit

kc

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

Highlighted

pguerett

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)
Highlighted

kc

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
Highlighted

Avatar

Guest

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.