Answered
Accepts numbers with 2 decimal places, as well as add "%" sign if needed
is it possible to do this in Acrobat using javascript?
Thanks,
Reymund
is it possible to do this in Acrobat using javascript?
Thanks,
Reymund
it doesn't allow me to insert '%' sign after i input a number.
if I input '%' first, i can't insert anything else too
Where are you trying to insert the percentage symbol? I thought you wanted it before the number... If you want it after then use this code instead:
event.rc = /^\d*\.?\d{0,2}%?$/.test(AFMergeChange(event));
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.