Hi Gayle,

 

I don't know about the wild-card character approach, but perhaps the following _javascript_ could help identify the field names starting with "txt":

 

// Enumerate through all of the fields in the document.

for (var i = 0; i < this.numFields; i++)

      {

      if (this.getNthFieldName(i).substring(0,3) == "txt")

                  app.alert(this.getNthFieldName(i));

      }

 

but I'm afraid I don't know of any way to automatically change field names.

 

Note:  The parameters for “substring” are the starting character and one more than the ending character where the first character is numbered zero.

 

-----Original Message-----
From: Gayle Graham [mailto:[EMAIL PROTECTED]
Sent:
Monday, October 27, 2003 1:22 PM
To: [EMAIL PROTECTED]
Subject: [PDF-Forms] Wild Character

 

I just found on pdfPlanet a way to turn on/off shading for printing.  It is real easy if you follow their instructions which includes starting all field with “color.” to establish the parent.child relationship.  All of my fields are txtName.  Before I go rename all the fields in my forms, is there a wild character in _javascript_ing that I could use to say anything starting with txt?  I tried txt* and txt*.*

 

Gayle Graham

Senior Deputy District Attorney

Support and Technical Services

(925) 957-2226 direct line

(925) 957-2240 fax

[EMAIL PROTECTED] 

 

Reply via email to