PDF-Forms is a service provided by PDFzone.com | http://www.pdfzone.com/ __________________________________________________________________
Bet,
unfortunately, I can't see in which event you are executing this script.
If you do not execute it in a Calculate event, you could reset the field using the console and execute
this.getField("PreparedBy").value = "" ;
before you save the document.
Also note that in order to keep this working, you MUST have "Save as... optimizes for fast web view" OFF, in order to keep the value as it is supposed to.
Hope, this can help (even if I might have blown the tamper-protection...).
Max Wyss PRODOK Engineering Low Paper workflows, Smart documents, PDF forms CH-8906 Bonstetten, Switzerland
Fax: +41 1 700 20 37 or +1 815 425 6566 e-mail: mailto:[EMAIL PROTECTED] http://www.prodok.com
[ Building Bridges for Information ]
______________________
On Dienstag, Dezember 23, 2003, at 09:58 Uhr, Morash, Bet wrote:
PDF-Forms is a service provided by PDFzone.com | http://www.pdfzone.com/
__________________________________________________________________
My client wanted to add an auditing (tamper-proof) field to an accounts
payable voucher which would identify the person filling in the document.
I successfully used the following script to automatically fill the field
from the system loginID, and made it tamper-proof by making it a
read-only field which keeps the ID even when the saved PDF is e-Mailed
to another person.
Unfortunately now it is too tamper-proof! I have found if I make changes to the original PDF, my login is applied immediately and no-one can change it. Help! Is there an administrative password I can use <grin>? Or can the script be modified so when it sees my login it disregards it?
************** var f = this.getField("PreparedBy");
if (f.value == "") { f.value = global.myUserID; }
**************
BTW: I am now using Acrobat 6.0 Pro.
To change your subscription: http://www.pdfzone.com/discussions/lists-pdfforms.html
