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