Skip to main content
Participant
March 27, 2020
Answered

How do you make the cursor automatically move the next text field after the current field is filled?

  • March 27, 2020
  • 2 replies
  • 4901 views

I've created a fillable form where the user will fill in specific numbers. I have text fields set up for each number and would like their cursor to automatically jump to the next fields when they fill in the first field, so they can fill in the next number. There is 1 text field for each digit of a 4-digit number - so 4 text fields.

They are all set up so the user must input a single number already.
This would be similar to a phone number, so once the area code is typed in the cursor would automatically jump to the next text field for the user to type in the next 3 digits, then the same thing would happen so they could fill in the last 4 digits.

Does anyone know how I can do this?

This topic has been closed for replies.

2 replies

try67
Community Expert
Community Expert
March 27, 2020

You can simply use a text field with the Comb option enabled, instead.

ProlificUserCorrect answer
Participating Frequently
March 27, 2020
Participant
March 27, 2020

I'm still struggling to get the code to work for me, even after adding the exact name of the next field. But I think this is going to work. Thanks.