Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

How do I customize a tab order based on a drop-down choice?


Level 1

I need the tab order to change based on the user's choice in a drop-down at the top of the form. How do I do that?

1 Reply


Level 10


Try this function


*  Set next tab order for a form object.

*  @param {field or subform} formObject    The field or subform to update the traversal

*  @param {field or subform} target        The field or subform that will be inserted into the tab sequence


function setTraversal(formObject, target)


    var traverse = formObject.traversal.resolveNode("traverse.[operation=='next']");

    if (traverse == null)


        var traverseNode = xfa.template.createNode("traverse");



    traverseNode.ref = target.somExpression;


So to change the tab order for TextField1 so it becomes TextField3 use;

setTraversal(TextField1, TextField3)