PDF-Forms is a service provided by PDFzone.com | http://www.pdfzone.com/ __________________________________________________________________
There are a few steps to follow to make things work well.
First, clean up your code so that it won't depend directly on field names, but use the event.target field object instead.
Second, make a function out of your code, which you can call without arguments (unless they are kind of global for the document).
Third, install the function as a document level script.
Fourth, install the function calls. For that, you would create another script you would (if you are working manually) run from the Console. This script would for one loop through the fields, possibly do some evaluation of the kind of field, and then use the addScript() method to add the previously specified function call to the according event.
Hope, that 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.
_________________________
Hello everyone! I really hope you can help me. I have designed a form which has many fields on it. To help users fill it out I would like the field to be highlighted in color when someone tabs into it. I have the code and now I am just having a problem getting the code to show up in all the fields. I have done this once before a long time ago and of course now I'm suck. If I can avoid entering this script for each individual field it would save me a ton of time. Any help would be great and Tim G. if you're out there you helped me with this one before! Thanks ahead of time.
To change your subscription: http://www.pdfzone.com/discussions/lists-pdfforms.html
