Custom Form calculation appending last added value
Hello everybody,
I'm getting some weird behavior when doing a custom calculation for a form field. Here is the Javascript I'm inputting:
event.value=
(this.getField("Purchase price").value-
this.getField("Loan amount").value-
this.getField("Additional loans").value-
this.getField("Deposit").value-
this.getField("Seller credits").value-
this.getField("Agent credits").value+
this.getField("Reserve req").value+
this.getField("Closing costs").value)
The problem is, the last field's value is appending to the calculated values above it. So everything calculates and display in the form field (except closing costs), and when Closing costs is filled in, the value gets appending rather than adding to the rest of the values like it should. Does anyone know how to fix this problem, or does anyone have any idea what is going on?
Thank you!
