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.

E-mail It