I need to enter the calculations on a .pdf form and I am having trouble getting the percentages to work.
I have a Property Value (field 4.3) then a Borrowers Equity (field 4.6) and then a Percentage of Equity (field 4.7)
What Java Script would I use to get the percentage to come out correctly (example 20.0%)
What is the problem you are having?
How to do (not so simple) form calculations by Thom Parker
I would them make sure the fields I am going to use have the correct formatting for the expected type of input or write some custom validation. I would set field 4.3 and 4.6 to have a format of Number with the appropriate number of decimal places. For field 4.7 I would use the Percentage format.
Acrobat provides 3 methods for entering calculations. The first one is for selecting fields to perform a specific calculation but division is not one them, so the method is not available.
Them there is the Simplified Field notation that uses just the field names and assumes you are using the value of the fields or a constant value. This method requires a specific field naming convention and the first requirement is that all field names start with an alphabetic character. Since your field names do not follow this requirement, you cannot use this method.
Note you you may have to deal with division by a divisor with a value of zero or near zero..