PDF-Basics is a service provided by PDFzone.com | http://www.pdfzone.com/ __________________________________________________________________
var n = this.getField("Valueh").value;
var o = this.getField("Valuei").value;
var theValue = n - o;
if (theValue > 0)
this.getField("Reimburse").value = theValue;
else
this.getField("Owed").value = -1* theValue;Jim Plante <[EMAIL PROTECTED]>
On Nov 20, 2003, at 12:41 PM, Kevin Schore wrote:
PDF-Basics is a service provided by PDFzone.com | http://www.pdfzone.com/
__________________________________________________________________
I wrote this java script that subtracts two numbers. But I want it to show a negative
number in one field and if it is a positive number to show up in another field. Here is
the java script
var n = this.getField("Valueh"); var o = this.getField("Valuei"); event.value = n.value - o.value;
Example is total expense + Less cash advance - amount to be reimbursed + amount owed to company -
Thanks in advance
Kevin Schore MCP Information System Manager Interiors By Decorating Den 301-272-1500 Fax:301-272-1520 [EMAIL PROTECTED] www.DecoratingDen.com
To change your subscription: http://www.pdfzone.com/discussions/lists-pdfbasics.html
To change your subscription: http://www.pdfzone.com/discussions/lists-pdfbasics.html
