Hello. I need help.
I have a four questions wrapped into (DisclosureQuestions) and this is nested in Subform1. I created a button in Subform2 to add these questions. However, when I click the button, it adds the questions right under Subform1. I am trying to move the questions to Subform2. My javascript is below. Can anyone tell me what I am 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!