Skip to main content
NaDiA-rAXu4u
Participating Frequently
November 3, 2018
Answered

Need a javascript for not have to tap to go to next field

I need a javascript for the client to not have to tab to go to the next field. Example; text field limit to one character and when clients enter the character it should go automatically to the next text field. Can someone please help?

This topic is closed to new replies. Start a new post to keep the conversation going.
try67
try67Correct answer
Community Expert
November 3, 2018

I recently answered a very similar question. See: Skipping charaters between linked boxes on form - Adobe Acrobat PDF

32 replies

NaDiA-rAXu4u
Participating Frequently
November 4, 2018

Hi Yes I set up a character limit of 1. here is the error messages

TypeError: this.getField(...) is null

1:Field:Validate

TypeError: this.getField(...) is null

1:Field:Mouse Up

TypeError: this.getField(...) is null

1:Field:Validate

TypeError: this.getField(...) is null

1:Field:Mouse Up

TypeError: this.getField(...) is null

1:Field:Mouse Up

TypeError: event.target is undefined

1:Console:Exec

undefined

TypeError: this.getField(...) is null

1:Field:Validate

Translate
try67
Community Expert
Community Expert
November 4, 2018

Those errors mean you entered the wrong field name. Keep in mind that JS is

case-sensitive!

Translate
NaDiA-rAXu4u
Participating Frequently
November 4, 2018

I have copy and past the JS code. If you say it is case sensitive do you mean the code or the field it self?

Translate
NaDiA-rAXu4u
Participating Frequently
November 3, 2018

No this is not my lucky day today nothing works...

Translate
try67
Community Expert
Community Expert
November 3, 2018

Press Ctrl+J and see if there are any error messages in the console window.

Translate
try67
Community Expert
Community Expert
November 3, 2018

Also, did you set that field to have a character limit of 1?

Translate
NaDiA-rAXu4u
Participating Frequently
November 3, 2018

Oooo okey let me try again thank you

Translate
NaDiA-rAXu4u
Participating Frequently
November 3, 2018

On the field self:

Translate
try67
Community Expert
Community Expert
November 3, 2018

Read the discussion in that thread more carefully. It needs to be the field's custom Keystroke script.

Translate
NaDiA-rAXu4u
Participating Frequently
November 3, 2018

I am very new to the javascript.....myne does not work. What am I doing wrong?

Translate
try67
Community Expert
Community Expert
November 3, 2018

Seems fine. What happens when you try to use it? Also, where did you place the code?

Translate
try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
November 3, 2018

I recently answered a very similar question. See: Skipping charaters between linked boxes on form - Adobe Acrobat PDF

Translate
Inspiring
November 3, 2018

Have you searched for "autotab" or "gonext"?

JavaScript - setFocus Method for tabbing to next form field

Translate