Title: Message

Brandon,

I agree with Rob.  In fact, here's some code that I found that might be close to what is needed.  It is supposed to loop thru all fields to add the same function (named ""showborder" and "hideborder" in this example) to all fields (for the "On Focus" and "On Blur" actions) on a form already created.

 

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

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

{

this.getField(this.getNthFieldName(i).setAction(“OnFocus”, “showborder”));

this.getField(this.getNthFieldName(i).setAction(“OnBlur”, “hideborder”));

}

 

-----Original Message-----
From: CAIRNS Robert -NUCLEAR [mailto:[EMAIL PROTECTED]
Sent:
Thursday, September 18, 2003 2:56 PM
To: '[EMAIL PROTECTED]'
Subject: RE: [PDF-Forms] Use Same Script on Multiple Fields

 

In Acrobat 5 you can write a script to do this. (using the setAction field method)

That's the way I do it.

-----Original Message-----
From: Brandon Gawronski [mailto:[EMAIL PROTECTED]
Sent:
Thursday, September 18, 2003 2:34 PM
To: [EMAIL PROTECTED]
Subject: [PDF-Forms] Use Same Script on Multiple Fields

I have a script that OnFocus puts the time in a text field.  There are 15 fields I need to do this to.  Is there an easier way then setting the On Focus to execute a _javascript_ and then pasting that _javascript_ 15 different time?

 

~Brandon




--------------------------------------------------------------
THIS MESSAGE IS ONLY INTENDED FOR THE USE OF THE INTENDED RECIPIENT(S) AND MAY CONTAIN INFORMATION THAT IS PRIVILEGED, PROPRIETARY AND/OR CONFIDENTIAL. If you are not the intended recipient, you are hereby notified that any review, retransmission, dissemination, distribution, copying, conversion to hard copy or other use of this communication is strictly prohibited. If you are not the intended recipient and have received this message in error, please notify me by return e-mail and delete this message from your system. Ontario Power Generation Inc.

Reply via email to