Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

calculations in forms

Status
Not open for further replies.

mfoster

MIS
Joined
Jun 14, 1999
Messages
1
Location
US
I am using Acrobat 4.0 (windows). I have set up a form to do a simple <br>
calculation:<br>
<br>
<br>
Net income to net sales = net income / net sales<br>
<br>
<br>
This is the javascript I used:<br>
<br>
<br>
&lt;FontFamily&gt;&lt;param&gt;Courier New&lt;/param&gt;var Income = this.getField("income"); <br>
<br>
var Expenses = this.getField("sales");<br>
<br>
event.value = Income.value / Expenses.value;<br>
<br>
<br>
<br>
This code works fine when I multiply (*), subtract(-), <br>
or add(+). But when I try to divide (/), I get an error <br>
message that says "The value entered does not match the <br>
format of the field (net)" The answer it produces is <br>
correct--it just generates that error message.<br>
<br>
<br>
Could you please tell me what this message means and <br>
how I can correct the code?<br>
<br>
<br>
Thanks so much for your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top