Change decimal to percentage format
My question focuses on Acrobat text fields with the number format and the percentage format, specifically, how do you convert a number to a value that will be accepted in a field with the "Percentage" format so that you don't get this: "The value entered does not match the format of the field"
The dividend and divisor values are from Number formatted fields (1) and (2):
(1) var moBalance = getField("num.PrincipalBalance");
(2) var salePrice = +getField("num.SS.Charge.SalePrice").value;
The recipient field (3) for the quotient is "num.LTV" which is formatted as a Percentage.
var moLTV = getField("num.LTV");
moLTV.value = (moBalance.value/salePrice);
This throws the error "The value entered does not match the format of the field"
I prefer to leave "num.LTV" as a percentage format, not to have to change it to Number format.
