To watch the option boxes and determine if a script custom calculation if necessary

OK, so I have these fields:

(Radio button) Units of gradients: ft, cm, m

(Radio button) Distance units: ft, cm, m

(Number) Gradient

(Number) Distance

I need to calculate the Gradient/Distance BUT I need to make sure that the units are the same. I would prefer, if it is in meters.

Ft conversions * 0,3048 = meters

cm * 0.01 = meters

The other drawback is that he has to work on an iPad running Adobe Reader Mobile.

Help!

Hey so I think I figured this out someone else can be useful:

convert the var = this.getField("GradientUnits").value;

If (convert == "centimeters") {event.value = '0.01';

}

ElseIf (convert == "feet") {event.value = "0,3048";

}

else event.value = "1".

I have created a calculation hidden for each number and then calculates the slope of these two calculations.

Hope this helps someone else.

Tags: Acrobat

Similar Questions

Maybe you are looking for