PDFdev is a service provided by PDFzone.com | http://www.pdfzone.com
_____________________________________________________________

> I have a field with the following value: "00012398847636000"
> 
> When I do
> var a = this.getField("Text").value
> "a" turns out to be "12398847636000"

It just does that. It converts it to a number if it can. In Acrobat 5 and later 
you can use the "valueAsString" field property instead. If it must work in pre-
5 versions, you can store the field value in a document-global temporary 
variable in the Validate event, since "event.value" will return a string:

temp_var = event.value;

You'd then get the field value by looking at the value of this variable.

George


To change your subscription:
http://www.pdfzone.com/discussions/lists-pdfdev.html

Reply via email to