Unable to move subform when using moveInstance


hello. need help.

i have 4 questions wrapped (disclosurequestions) , nested in subform1. created button in subform2 add these questions. however, when click button, adds questions right under subform1. trying move questions subform2. javascript below. can tell me doing wrong?

var onewinstance = subform1.disclosurequestions.instancemanager.addinstance(1);
var nindexfrom = onewinstance.index;
var nindexto = subform2.index + 1;
subform1.disclosurequestions.instancemanager.moveinstance(nindexfrom, nindexto);

thanks!

try adding xfa.layout.relayout(); @ end of script , let know results.


More discussions in LiveCycle pre-ES (6.x and 7.x) discussions


adobe

Comments