Custom Calculation Script Help (no Javascript experience)
Hi all,
Really hoping someone could help me. I'm thinking this should be much more straight forward so I'm probably missing something very simple.
I'm working on an Acrobat Pro DC fillable form. The drop-down with two options is the condition and would like the Months24 field to calculate differently based on which dropdown is selected. The calculation is a basic dollar amount multiplied by a rate to output a monthly payment.
Below is what I'm trying to use in the Custom Calculation Script for the field I would like to be calculated (I was researching & testing what I found on these forums):
var a=+this.getField("DeferralOption").value;
if(a=="3") event.value=(Price*TMDRate24);
else if(a=="6") event.value=(Price*SMDRate24);
Here is a screenshot of my form:
