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>
<FontFamily><param>Courier New</param>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.
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>
<FontFamily><param>Courier New</param>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.