PDF-Forms is a service provided by PDFzone.com | http://www.pdfzone.com/
__________________________________________________________________
I'm able to save without an error but now I'm not getting all the fields as
displayonly,
help me please.
//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')
theField.readonly = true;
// this.getField(theField).readonly=false;
}
Karen Puehn
GOG Statistical and Data Center
Roswell Park Cancer Institute
[EMAIL PROTECTED]
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Puehn, Karen
Sent: Thursday, October 16, 2003 3:59 PM
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')
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
To change your subscription:
http://www.pdfzone.com/discussions/lists-pdfforms.html