It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming JavaScript Forum

Text field length validation in Acrobat 8

Text field length validation in Acrobat 8

Postby Wiizl on Wed Feb 13, 2008 5:05 pm

I really need help on this one.
The problem is quite simple-
I've got many text fields that user has to fill. The thing I can't figure out is how NOT to allow go to next field if the length of current field's value is less than 6 digits. I tried something like this, but I know almost nothing about javascript so it's not working:

Code: Select all
var lg = getField("From[0]").value.length;
if(lg<6 && lg>0){
getField("From[0]").setFocus();
}


And I've put this in onBlur event... Could anybody help me?
Wiizl
 
Posts: 0
Joined: Wed Feb 13, 2008 5:00 pm

Who is online

Users browsing this forum: No registered users and 1 guest