PDF-Forms is a service provided by PDFzone.com | http://www.pdfzone.com/ __________________________________________________________________
On Mar 12, 2004, at 6:18 PM, DCNP wrote:
PDF-Forms is a service provided by PDFzone.com | http://www.pdfzone.com/
__________________________________________________________________
JRB,
Thanks again for your interaction.
I guess my response was too short... We've already done that. The 2 digit
decimal place setting does NOT prohibit the user from typing more than 2
digits. Then, it rounds out the number.
We need Acrobat to do one of the following (in order of preference):
- Prohibit the user from typing more than two characters after the decimal.
- Allow them to type more, then truncate to 2 digits with NO rounding
Thanks again. Any ideas would be greatly appreciated.
Dana
Okay, try something like this in an "On Blur" action: num=this.getField("NumberField").value; num *=100; num = int(num); num /= 100; this.getField("NumberField").value = num;
This is inelegant, blunt-instrument JavaScript. Right off the bat, you can combine the three inner statements into one:
num = (int(num*100))/100;
It's a little easier to understand the method when it's written in three lines. But I'll bet there's a way to do it in a single line. Any takers?
Jim Plante <[EMAIL PROTECTED]>
To change your subscription: http://www.pdfzone.com/discussions/lists-pdfforms.html
