Avatar

Level 10

Hi,

You can use the setFocus method, but would first need to determine the number of pages.

form1.Page1.instanceManager.addInstance(true);

var i = form1.Page1.instanceManager.count;

var vTarget = xfa.resolveNode("form1.Page1[" + i + "].Header.Company");

xfa.host.setFocus(vTarget);

This should work. If not have a look at the Help for setFocus.

Niall