Mary,
 
Use this equation, it checks to make sure that the number you are dividing by is NOT 0, otherwise you would get an error.
 

if (this.getField("f2").value != 0){

this.getField("f3").value = this.getField("f1").value / this.getField("f2").value;

}

f1 you would replace with the name of the "numerator" or first number of your division

f2 you would replace with the name of the "denominator" or second number

f3 is the name of the field of your answer.  Put the above formula in the f3 field calculate tab custom calculation (depending on your version of Acrobat). 

f1 and f2 need to be formatted as numeric and you should make f3 read-only.

~nicholas

www.wedothattechnologies.com


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
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.

____________________________________________________
  IncrediMail - Email has finally evolved - Click Here

Reply via email to