PDF-Forms is a service provided by PDFzone.com | http://www.pdfzone.com/
__________________________________________________________________
Use:
theField.readonly=false;
instead of
this.getField(theField).readonly=false;
it should work (at least on ver 5.0!)
Easa
-----Original Message-----
From: Puehn, Karen [mailto:[EMAIL PROTECTED]
Sent: 16 October 2003 20:59
To: [EMAIL PROTECTED]
Subject: [PDF-Forms] javascript to loop thru fields
and set them to readonly - help needed with error
PDF-Forms is a service provided by PDFzone.com |
http://www.pdfzone.com/
__________________________________________________________________
I am trying to set all but 2 of the fields (the 2 button
fields) to readonly with a generic script in each of my forms (this is a
receipt form).
I previously did this using "save as" security settings but
this is causing me problems with adobe reader 6.0.
Thus I thought I'd use something like this:
//loop over all fields and set them readonly
for (var j=0; j < this.numFields; j++)
{
var fieldname = this.getNthFieldName(j);
var theField = this.getField(fieldname);
if (theField.name != '@Continue1' && theField.name
!='@Printit')
}
However, when I try to save the adobe form I get the
following error:
Acrobat Forms Built-in Functions Version 4.0
JavaScript Error at line 7:
this.getField(theField) has no properties
Help would be greatly appreciated here.
Karen Puehn
GOG Statistical and Data Center
Roswell Park Cancer Institute
[EMAIL PROTECTED]
To change your subscription:
http://www.pdfzone.com/discussions/lists-pdfforms.html
As this message has come from a source external to the AES
network, there is a possibility that it may contain harmful attachments. If
in ANY doubt about the content or the identity of the sender, please
contact the IT Department.
This e-mail is only for the use of the addressee. It may contain information
which is legally privileged, confidential and exempt from disclosure. If
you are not the intended recipient you must not copy, distribute or
disseminate this e-mail or attachments to any person other than the
addressee. If you receive this communication in error please advise us by
telephone at once.
AESSEAL plc Tel. +44 1709 369966
Visit our Website at http://www.aesseal.com
To change your subscription:
http://www.pdfzone.com/discussions/lists-pdfforms.html