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

Mary-

Put this formula under the calculation tab in Field 3.

Var a = this.getField("Field1");
Var b = this.getField("Field2");
Event.value = a.value / b.value;

Regards...Justice

-----Original Message-----
From: MARY RUSSELL [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 08, 2003 11:17 AM
To: [EMAIL PROTECTED]
Subject: [PDF-Forms] Division question



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

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

Reply via email to