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

Field tabbing upon input

rodbunn
Registered: Feb 3 2008
Posts: 81

Is there a way to go to the next field when the user reaches the limit of the length of the field they are inputting? For instance, I have a "text" field, I set the limit to 3 char's. The user types 3 characters, can I make the curser jump to the next field as soon as they type the 3rd character ?

Thanks in advance for any help.

Rod

Using: LiveCycle Designer

My Product Information:
LiveCycle Designer, Windows
DanielKunz
Registered: Jan 22 2008
Posts: 55
You can easy jump to the next field if the user typed your 3 characters and one again. Therefor you must set a fix length of your field and put the following code to the full event:
xfa.host.setFocus("");Otherwise for your idea you can count the typed characters, but there's the problem that it also count the backspace key if you will correct your value
But you can do it when you define a global value in the initialize event (here gloTest) and put the following code to the cange event:
gloTest++;
if (gloTest == 3)
{
xfa.host.setFocus("");
gloTest = 0;
}
I don't know if there is any way to watch for the backspace event. If there is one you could decrease gloTest if the backspace was hit.

That was the two ways I know.
I hope they could help you.

Greets Daniel
rodbunn
Registered: Feb 3 2008
Posts: 81
I was told by Adobe that if you build the form in LiveCycle (which I did) then you can't jump automatically to the next field after a certain amount of characters. THey did say that if I had built the form in Acrobat 8 (not using LiveCycle) then YES I could have the fields react the way I want.

Go figure.....