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

Clear form without saving/caching/remembering field values

marklorenz
Registered: May 6 2009
Posts: 14
Answered

Hello. I have a form that people can use from public locations, like a library. The form includes sensitive information, such as SSN. I need to ensure that the field values will NOT be shown once they close the form.

I have tried all kinds of ways to clear the form, including "xfa.host.resetData(); " in the document "will close". Nothing has worked. This seems like a pretty common requirement - has anyone got an answer as to how to do this?

I am using Acrobat 8 and I have access to other Adobe tooling if needed.

My Product Information:
Acrobat Pro 8.0, Windows
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
There are also setting for newer versions of Acrobat and Reader that can optionally cache form on the local system or provide auto complete. These optional preferences can be turned off for a form.

[url=http://www.adobe.com/devnet/acrobat/security.php]Acrobat Developer Center - Security[/url]

George Kaiser

marklorenz
Registered: May 6 2009
Posts: 14
Thanks for the reply. I know that the user can handle this, but I have a requirement from my client to handle this without the user's action. Our users are not computer literate in many cases and cannot be expected to protect their information.

I need a solution that will clear a document's interactive form either upon opening or closing or saving. I cannot have the field values being visible to other users on a public computer. Nothing I've tried has worked so far. I need some action (e.g. JavaScript run upon an event) that will clear a form programmatically within the document itself. Do you know of such a solution?

Thanks.
marklorenz
Registered: May 6 2009
Posts: 14
I got a solution on another forum. Here is what I put in my document scripts for save and open:

function clearForm() {
this.resetForm(); //clear all form fields
this.nocache = true; //for this form
this.noautocomplete = true; //for this form
}
skrdigital
Registered: Feb 22 2009
Posts: 16
Thanks for your information mark. it very user full information u have given.