Auto Tab to next field

The Auto Tab issue: often when a comb field on a LiveCycle document is full one would like the cursor to move to the next field in the tab order automatically without the user needing to TAB.  Many people have answered the 'auto tab' issue with solutions where the next field is an argument to some function (various references below), but I wanted a solution where the next field did not need to be named.  After all, the document knows the next field in the tab order, so why do we need to name it?

In programming terms, the goal was to be able to add a statement Functions.autoTab(this); in a field's change event, where Functions is the name of a script object.  Following is my JavaScript solution for comb fields where the tab order has been explicitely set through LiveCycle Designer menu item View/Tab Order.  This results in the traverse element being defined for tabbed fields in the XML.

// AutoTab
function autoTab(oField){
    if (xfa.event.newText.length ==
      oField.ui.resolveNode("#" +

This has proved effective with many documents that have comb fields for:

  • payments and tax grouped in millions, thousands and units
  • dates and telephone numbers
  • Australian tax file numbers
  • ABNs (Australian Business Numbers)

and so on...

Various references that were found to this issue are:

Ideally, it would be better if autoTab were an available method for a field.

This post is now closed.
System Admin - Sunday, May 25, 2014
Just wondering if anybody new where exactly you place this script? Does it go in the custom keystroke and does it require a form base script to run like most of the other auto-tab scripts do? Cheers.
Ryan - Thursday, October 01, 2009
See Adobe Help about 'The Script Object' The script object name I used in this example is Functions.
System Admin - Thursday, October 01, 2009
thanks for this post! I was having a devil of a time getting my script to work.
misbips - Thursday, September 06, 2012

Leave a comment.

E-mail It