DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/)
-   JavaScript / DHTML / AJAX (http://www.daniweb.com/forums/forum117.html)
-   -   Text field length validation in Acrobat 8 (http://www.daniweb.com/forums/thread108984.html)

Wiizl Feb 13th, 2008 12:08 pm
Text field length validation in Acrobat 8
 
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:

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?

peter_budo Feb 13th, 2008 12:26 pm
Re: Text field length validation in Acrobat 8
 
Not my are of expertice but maybe this can help, link


All times are GMT -4. The time now is 10:43 pm.

Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC