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?
Views
Replies
Total Likes
Hi,
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");
formObject.traversal.nodes.append(traverseNode);
}
traverseNode.ref = target.somExpression;
}
So to change the tab order for TextField1 so it becomes TextField3 use;
setTraversal(TextField1, TextField3)
Regards
Bruce
Views
Replies
Total Likes