These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Text Overflow Or Auto Tabbing Capable?

MrChinhNguyen
Registered: Dec 19 2007
Posts: 9

Does anyone know if a text field can be linked together like for text overflow or auto tabbing? If so could you please let me know how to javascript should be written. Thank you!

My Product Information:
Acrobat Pro 8.0999999999999996447286321199499070644378662109375, Macintosh
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
In AcroForms there is a Event JavaScript property for detecting a full field. This is only for text fields that do not scroll thier contents and is only valid on the keystroke event. The keystroke script would look something like this.

if(event.fieldFull)
this.getField("NextField").setFocus();

It gets more complex if you want to handle characters in the next field or backspacing.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

MrChinhNguyen
Registered: Dec 19 2007
Posts: 9
Wow. Thanks! That actually worked, been working on this for a week now and wasn't getting any results with the scripting I was using.
Hate to ask, but I don't know much about javascript, could you show me the scripting for the more complex actions like backspacing. Or how to obtain the information I need, like is there a bible with all the scripting capabilities of an Acrobat Form?
I viewed a bunch of other websites and asked 2 web designers I know, but didn't get any results, it be nice to figure it out on my own. Thanks again!
dennismonsewicz
Registered: Feb 11 2010
Posts: 8
Where do you place this piece of Javascript?