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

READER - Email form without ability to save

tmmths
Registered: Nov 11 2011
Posts: 4

Is there ANYWAY to allow a user with a PDF reader to email a completed form (entire form, not just data) via an email button in the form WITHOUT giving the Reader Software the ability to also save the completed form?
 
I would like to post a form for a group at work so that many people can access the form, complete it, then email the completed form via an email button. But if I set that up giving Adobe Reader (which is all everyone has) the permissions to email, the end user can also save the form. This means that the next person accessing the form may not get a blank form if someone saves it (which you KNOW someone will!), but will get the last person's data...which is no good.
 
Thanks for your help.
 
Acrobat 9.3.2 PRO - Windows
End users have Reader...many different versions

My Product Information:
Acrobat Pro 9.3.1, Windows
try67
Expert
Registered: Oct 30 2008
Posts: 2398
No, that's not possible.
However, to solve your problem you can embed a script in your file that resets the form when the file is opened.

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

tmmths
Registered: Nov 11 2011
Posts: 4
That would work too. I am not proficient AT ALL at adding java to pdf/forms so if someone has some code and a bit of instructions on adding java for resetting/clearing an entire form upon open, that would be appreciated. I tryed adding a hidden button or something like that, but there was no "on open" feature only focus, mouse up, etc. and I am looking for something to clear all form fields entirely upon the document opening.

THANK YOU!
try67
Expert
Registered: Oct 30 2008
Posts: 2398
Go to the Advanced menu - Document Processing - Document JavaScripts - enter a new script name (like "init") - in the window that opens delete the function definition and replace it with this code:
this.resetForm();

That's all you need.

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

tmmths
Registered: Nov 11 2011
Posts: 4
Thank you for the great instructions.

Thought...this may NOT actually be a solution (have not tried it yet) but on further thought wouldn't this clear the form that was emailed, once it is opened, making the completion and emailing of the form useless?

If that IS the case I guess I would need to put some script in the email button that would delete the "clear form" function...or something like that...if that is even possible.

I am looking for a way for the emailed form to contain the data when opened once emailed (data would never have to be changed or the form used once emailed), but the original form, that OTHERS will access to fill in and email to be clear of data when opened. All of this is because the "receivers" of the completed form/data do not have access to software or the skills to do anything with xml data files.

Hmmm....
try67
Expert
Registered: Oct 30 2008
Posts: 2398
Yes, that's an issue, but there could be workarounds for it.

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

Merlin
Acrobat 9ExpertTeam
Registered: Mar 1 2006
Posts: 766
Hi,

another to achieve this may be to add a JavaScript that reset the "dirty" flag before the doc will be closed.

this.dirty = false;

On the "Document will close" and on the "document will save" event.

tmmths
Registered: Nov 11 2011
Posts: 4
I think that the clear document idea will not work as the data will eventually be removed and it should stay once it is emailed (I guess that is why the reader saves it...right!)

If anyone comes up with a work around (or a way for "only know how to email" co-workers to work with xml data)I would luv to hear about it. Thanks for the help!