Skip to main content
NaDiA-rAXu4u
Participating Frequently
Nov 3, 2018 11:27 AM UTC
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
Nov 3, 2018 5:00 PM UTC

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

32 replies

NaDiA-rAXu4u
Participating Frequently
Nov 4, 2018 7:40 AM UTC

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
Nov 4, 2018 9:21 AM UTC

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

case-sensitive!

Translate
NaDiA-rAXu4u
Participating Frequently
Nov 4, 2018 9:55 AM UTC

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
Nov 3, 2018 11:52 PM UTC

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

Translate
try67
Community Expert
Community Expert
Nov 3, 2018 11:55 PM UTC

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

Translate
try67
Community Expert
Community Expert
Nov 3, 2018 11:56 PM UTC

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

Translate
NaDiA-rAXu4u
Participating Frequently
Nov 3, 2018 11:40 PM UTC

Oooo okey let me try again thank you

Translate
NaDiA-rAXu4u
Participating Frequently
Nov 3, 2018 11:35 PM UTC

On the field self:

Translate
try67
Community Expert
Community Expert
Nov 3, 2018 11:37 PM UTC

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

Translate
NaDiA-rAXu4u
Participating Frequently
Nov 3, 2018 11:30 PM UTC

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

Translate
try67
Community Expert
Community Expert
Nov 3, 2018 11:32 PM UTC

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
Nov 3, 2018 5:00 PM UTC

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

Translate
Inspiring
Nov 3, 2018 4:18 PM UTC

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

JavaScript - setFocus Method for tabbing to next form field

Translate