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

PDF Form which requires agreement confirmation to close

Sunalta
Registered: Jun 21 2011
Posts: 4

A client of mine wants to send their contractors a PDF document that cannot close without it opening a new window that would ask them if they have understood the document's content and then requires them to press either a Yes or No button. Sort of like when you install new software and the user agreement.
 
After that is done the document closes and their reponse along with the completed document is e-mailed back to my clients website. Also I think an electronic signature would be added to access their intranet.
 
This is out of my area of expertise. I am running CS5 Acrobat Pro (also running CS4 and Acrobat 7 on other computers) and have Ted Padova's book on PDF forms which has a page on an agree button.
 
Any ideas of where to start?
 
Moderator, is this the right spot to post this question?

My Product Information:
Acrobat Pro 10.1, Windows
try67
Expert
Registered: Oct 30 2008
Posts: 2398
You can not prevent someone from closing a PDF file (luckily!).
If anything, what you describe should be presented when the document is opened, but even that you can't really enforce 100%. I would just replace the first page of the document with a large bold text saying something like:
"By continuing to read this document you agree to the following: ... If you don't agree, close the document now."

Also, you can't silently send an email without the user's consent (again, luckily!), unless they install a folder-level script on their machine that allows you to do that.

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

Sunalta
Registered: Jun 21 2011
Posts: 4
Thanks for your reply, much appreciated.
Yes I agree that you couldn't prevent them from closing the PDF
But could you not add a prompt that would activate when you tried to close the PDF form?
If they don't answer the yes/no question the contractor would be removed from their approved contractor list.
My client said they had the capability to do this at anouther oil/gas company he worked at.
The PDF form and the answer could be returned automatically via regular e-mail
Hopefully someone in the forum may have a solution on the prompt part.

try67
Expert
Registered: Oct 30 2008
Posts: 2398
Sunalta wrote:
But could you not add a prompt that would activate when you tried to close the PDF form?

Sure, you can embed a script that will prompt the user to click Yes/No before the file is closed, but it can't prevent the file from being closed.

Sunalta wrote:
If they don't answer the yes/no question the contractor would be removed from their approved contractor list.

How, exactly?

Sunalta wrote:
The PDF form and the answer could be returned automatically via regular e-mail.
Not automatically it can't. You can generate the email, but the user will have to manually send it.

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

Sunalta
Registered: Jun 21 2011
Posts: 4
If they receive a no answer then they contact the contractor and if necessary they are manually removed from the list.
Then I suppose you would have to add anouther button with the e-mail link.
Is there any reference material available on embedding this type of script.
I took a PDF Form course a few years ago but it didn't cover this
try67
Expert
Registered: Oct 30 2008
Posts: 2398
You can find the reference here: http://www.adobe.com/devnet/acrobat/javascript.php

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com