I have form fields in an interactive pdf. I need one box for each letter/number of the name, address, phone, etc. Once a letter is keyed in, I want to automatically advance to the next field. I want the user to type seemlessly, advancing through the boxes w.o needing to hit tab or enter. I used a custom keystroke script which does half the job. The script was:
if ( event.fieldFull || event.willCommit ) this.getField("er2").setFocus();
It brings the focus to the next field, but the character isn't effortlessly entered into the next field - you must hit enter (or tab) to make the next field accept the entry. So here's an example: the form has 8 boxes and the user wants to enter F A I R P O R T. I want them to continuously type "fairport" and have one letter end up in each box without entering tab or using enter. Please help! I'm not an "advanced" user...Thank you!
You might want to consider using a Comb field. With a comb field the user is automatically forwarded to the next field after each key stroke. From Acrobat's Help-
"Comb Of Characters Spreads the user-entered text evenly across the width of the text field. If a border color is specified on the Appearance tab, each character entered in the field is separated by lines of that color. This option is available only when no other check box is selected."
Hope this helps,
Dimitri
www.pdfscripting.com
www.windjack.com
Dimitri Munkirs
WindJack Solutions
pdfscripting.com