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

  • November 3, 2018
  • 7 replies
  • 1358 views

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 has been closed for replies.
Correct answer try67

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

7 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

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!

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?

NaDiA-rAXu4u
Participating Frequently
November 3, 2018

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

try67
Community Expert
Community Expert
November 3, 2018

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

try67
Community Expert
Community Expert
November 3, 2018

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

NaDiA-rAXu4u
Participating Frequently
November 3, 2018

Oooo okey let me try again thank you

NaDiA-rAXu4u
Participating Frequently
November 3, 2018

On the field self:

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.

NaDiA-rAXu4u
Participating Frequently
November 3, 2018

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

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?

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

Inspiring
November 3, 2018

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

JavaScript - setFocus Method for tabbing to next form field