Adobe Forms Javascript Help
Hello,
I have an excel form that I built in Adobe Forms - the excel form calculated savings and cost avoidance in positive and negative numbers based on 3 values, historic, offer and bid. I tried using a beautifier to generate the javascript code and am stuck. Here are the excel formulas and form values related to historic, first and final. Last, it should take the value of the Cost Savings and the Cost Avoidance, add and give total in positive or negative value. The formulas work perfect in excel, I just can't figure out how to convert them to javascript.
Excel value to Adobe Form Value
P37 = TotalsHistoricPrice
P38 = TotalsFirstorAverage
P39 = TotalsFinalPrice
D42 = CostSavingsProspectiveSuccess
H42 = CostAvoidanceProspectiveSuccess
The three formulas I need to calculate in my adobe pro form
1. Cost Savings - Excel Formula
=IF(P37=0,0,P37-P39)
2. Cost Avoidance - Excel Formula
=IF(P37=0,P38-P39,IF(P37<P38,P38-MAX(P37,P39),IF(P37=P38,0)))
3. Total Success - excel formula
=D42+H42
Please help, this is the last hang up I have on the form and I have studied the tutorials and am still struggling to make these work. The formula beautifier doesn't seem to work at all in these scenarios.
