These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

How to save an acrobat form to server using javascript?

johnsonweb
Registered: Jan 21 2008
Posts: 20

Hi -

I have an acrobat form with a submit button. I use the submit button to run some javascript to validate form fields and then email the entire .pdf form.

After some preliminary testing I've concluded that emailing acrobat forms via a submit button on the form is problematic because you cannot rely on Acrobat being able to find the end user's email client.

So, I believe a more reliable solution is to store the forms in a directory on the webserver.

For this to work I need to make sure that competed forms that are stored in the directory each have a unique name; otherwise I'd be overwriting the form.

Is there an acrobat javascript function that I can use to save the form with a unique name to the webserver?

Thanks!

Jeff
(I'm using acrobat pro v8.1.2 on windows.)

My Product Information:
Acrobat Pro 8.1.2, Windows
hiddengraphics
Registered: Mar 19 2008
Posts: 39
Do you mean you want acrobat to decide what the name will be? or that you want the files to be sequential in number like, myfile001.pdf, myfile002,pdf...?
johnsonweb
Registered: Jan 21 2008
Posts: 20
When I hit the submit button, I want the pdf form saved to my webserver under a name I choose.

Can I do this with javascript or, perhaps, can I pass control of the form to a PHP script on my webserver?
DocEngineer
Registered: Jan 23 2008
Posts: 10
I would like to know how to do this also, as I am having some issues with saving Forms (original plus data) to any location. I keep getting warning windows in Reader that doesn't allow an end-user to modify save any input data in the form, only print it out.