I would like to multiply a quantity with a cost and get an amount
UnitLn13 * UnitPrice13 = Amt13
Many thanks!
I would like to multiply a quantity with a cost and get an amount
UnitLn13 * UnitPrice13 = Amt13
Many thanks!
// variables for computation// enter field names between quotation marksvar cDivisor = "Divisor Field Name";var cDividend = "Dividend Field Name";// do not make edits below this lineevent.value = ""; // assume null value for quotientvar fDivisor = this.getField(cDivisor).value; // divisor valuevar fDividend = this.getField(cDividend).value; // dividend value// check for non-zero divisorif (fDivisor != 0) {// calculate for non-zero divisors onlyevent.value = fDividend / fDivisor; // compute quotient}
For Acrobat forms, [url=http://www.acrobatusers.com/tutorials/2006/form_calculations]How to do (not so simple) form calculations] by Thom Parker.
For LiveCycle Designer see the 'Scripting Reference' under LiveCycle Designer's 'Help' menu option.
There are also eSeminars on demand on this site that show how to create forms in Acrobat and LiveCycle Designer.
George Kaiser