PDF-Forms is a service provided by PDFzone.com | http://www.pdfzone.com/ __________________________________________________________________

Some RTFM in the Event section of the Acrobat JavaScript Scripting Reference shows that event.target is the field object which is concerned by the script ... and that is usually the calling field itself.

Therefore, instead of

this.getField("myField").lineWidth

you would have

event.target.lineWidth


And if you need the field name (for whatever purpose), you would have


event.target.name


Such issues are covered, BTW, in my workshops (see below)



Hope, this can help.



Max Wyss PRODOK Engineering Low Paper workflows, Smart documents, PDF forms CH-8906 Bonstetten, Switzerland

Fax:  +41 1 700 20 37
  or  +1 815 425 6566
e-mail:  mailto:[EMAIL PROTECTED]
http://www.prodok.com



[ Building Bridges for Information ]


______________________




Shameless Plug:

My next conference appearances and workshops:
• Conference presentations at the 2004 Symposium of the BFMA, May 23 to 27 in Reno, Nevada (http://www.bfma.org) and pre-/post-conference workshop, May 22/23 and 27, organized by essociates Group (http://www.essociatesgroup.com/AdvancedAcrobatForms.htm)
• And, as always, available for on-site workshops/tutorials/consulting.



_________________________





Max (or anyone else),

Do you have any simple examples of how to implement this? Does/can this be used in place of this.getField("FieldName")



To change your subscription:
http://www.pdfzone.com/discussions/lists-pdfforms.html



Reply via email to