PDF-Forms is a service provided by PDFzone.com | http://www.pdfzone.com/
__________________________________________________________________
I have used the following logic as the "Custom Keystroke Script" under
the "Format" tab when I wanted numeric-only entries:
// If keystroke is not Backspace
if (event.change.charCodeAt(0) > 13)
{
// If keystroke is not numeric
if (event.change.charCodeAt(0) < 48 ||
event.change.charCodeAt(0) > 57)
{app.alert ("Entry must be numeric.")
event.rc = false;}
}
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of D. P. Story
Sent: Tuesday, February 03, 2004 10:50 AM
To: Amy Sachs; [EMAIL PROTECTED]
Subject: Re: [PDF-Forms] Number Format
PDF-Forms is a service provided by PDFzone.com | http://www.pdfzone.com/
__________________________________________________________________
If the target audience all have Adobe Reader 5.0 or later, you can
use the Field.valueAsString (see Acrobat JavaScript Reference);
otherwise, custom keystroke JS is needed.
dps
On 3 Feb 2004 at 6:38, Amy Sachs wrote:
> Hello everyone! I have a question that I hope has an easy answer. On
a form that I have nearly completed there are a number of fields in
which a deposit number is entered. These deposit numbers many times
will have the first numeral as a zero. i.e. 0152 or 0231
> My problem is that Acrobat automatically formats this field once you
tab out of it and the 0 disappears. Is there a custom format script I
could use or what other options do I have? If anyone could help I would
really appreciate it, I need those zeros to stay in place!
>
> Thanks in advance,
> Amy
>
>
> ---------------------------------
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free web site building tool. Try it!
To change your subscription:
http://www.pdfzone.com/discussions/lists-pdfforms.html
To change your subscription:
http://www.pdfzone.com/discussions/lists-pdfforms.html