Mary,
 
You can use a pretty simple _javascript_ for this..which is as follows...
 
var a = this getField( "fieldname1");
var b = this.getField("fieldname2");
 
event.value = (a.value/ b.value);
 
the field names should be in quotes.
 
it will work fine.
 
Mehul Shah

MARY RUSSELL <[EMAIL PROTECTED]> wrote:

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

I must use a division calculation on a pdf form and haven't a clue how
to write the appropriate _javascript_ for it.

The problem will read something like this:

$200 divided by .12 = $1666.66

The first amount is in field 1; the next field will contain the .12 (or
.04 or .06); the last field the total of fields 1 and 2.

Thank you.



Mary J. Russell
Webmaster, SDAT
E-mail: [EMAIL PROTECTED]
Voice: 410-767-4288
Fax: 410-333-7253

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


Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing

Reply via email to