Skip to main content
Participating Frequently
December 10, 2016
Question

auto tabbing

  • December 10, 2016
  • 1 reply
  • 590 views

i am not using LiveCycle any more and not sure how to get the form to auto tab.  i have boxes that i have restricted to 1 character and want the form to auto tab to next box, which is also limited to 1 character.  (accounting codes). tried using the Java Script i used before under actions, but is not working.

thank you for your help

EC

This topic has been closed for replies.

1 reply

Inspiring
December 11, 2016

Use the comb field in LiveCycle.

Participating Frequently
December 12, 2016

Is there any way to do this using Adobe Acrobat Pro and not liveCycle?

Thank you,

Etta Cay Dixon

[personal information removed per policy - https://forums.adobe.com/docs/DOC-3731]

[This is an open forum, not Adobe support, please do not post personal information]

[If you are posting using email, please turn your 'sig file' function OFF for posting]

try67
Community Expert
Community Expert
December 12, 2016

Yes, it's possible. You need to define this function as a doc-level script:

function autoTab(cName){

    if (event.rc && AFMergeChange(event).length == event.target.charLimit) {

        var f = this.getField(cName);

        if (f==null) {

            app.alert("Can't locate: " + cName);

            return;

        }

        f.setFocus();

    }

}

And then use this code as the field's custom Keystroke event (the name in the parentheses is the name of the field to tab to):

autoTab("Text1");