Copy link to clipboard
Copied
Hello all,
I cannot get the "Balance Due" field to equal the "Contract Price" minus "Down Payment" correctly.
* The contract price is entered manually.
* The down payment script is (10% of Contract Price, not to exceed $1,000.00) --
var v1 = Number(this.getField("Contract Price_es_:prefill").value);
event.value = Math.min(1000, v1*.1);
* Balance due script is --
var v1 = getField("Contract Price_es_:prefill").value;
var v2 = getField("Down Payment_es_:prefill").value;
event.value = v1 - v2;
Thank you for any help!
Have something to add?