Copy link to clipboard
Copied
Hi, I have a form where I need would like to have the calculations below for 3 fields but would like them automatically set to percentage up to the 2nd decimal. Not sure how to create that in an editable pdf
Copy link to clipboard
Copied
Custom calculation scripts:
//LTV
var AsIs=this.getField("As Is Value").value;
if(!AsIs){event.value=""}
else
{
event.value=(this.getField("Total Loan Amount").value -
this.getField("Construction Holdback").value)/AsIs;
}
//LTC
var AsIs=this.getField("As Is Value").value;
if(!AsIs){event.value=""}
else
{
event.value=this.getField("Total Loan Amount").value/AsIs;
}
//LTARV
var arv=this.getField("After Repair Value").value;
if(!arv){event.value=""}
else
{
event.value=this.getField("Total Loan Amount").value/arv;
}