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')
this.getField(theField).readonly=false;
}
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