Skip to main content
Participant
November 20, 2024
質問

Editable Form calculations

  • November 20, 2024
  • 返信数 1.
  • 188 ビュー

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 

 

  1. LTV = [(Total Loan Amount – Construction Holdback)/As Is Value]
  2. LTC = (Total Loan Amount/As Is Value)
  3. LTARV = (Total Loan Amount/After Repair Value)
このトピックへの返信は締め切られました。

返信数 1

PDF Automation Station
Community Expert
Community Expert
November 21, 2024

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;
}