New Forum | Previous | Next | (P-PDF) Beginners
Topic: newbie question - form calculations
Conf: (P-PDF) Beginners, Msg: 126250
Date: 1/25/2005 03:11 PM
hi. i am totally new to JS and rather than do a course i try to learn on the fly so bear with me as this is probably a very basic question.
i have a PDF form with text fields (number format) that require simple calculation.
the following script is in the "custom calculation script" of a field called COST:
var p = this.getField("purchaseprice").value;
var d = this.getField("deposit").value;
var t = this.getfield("tradein").value;
event.value = p.value - d.value - t.value;
the error i get is
is it my syntax or am i supposed to add code to another part of the form?
i am using Version 4.0 - should i upgrade?