Hi,
I have a subform X which can be doubled by a click on the button. In that subform X there is another subform Y which also can be multiplied to a maximum of 3.
Now when I add a subform X and i want to add some subforms Y. The form will only add the subform Y in the first subform X and not in the second one.
This is the script I use:
for subform x
if(Incitant52.subFoireAcheteur.all.length < 2){;
Incitant52.subFoireAcheteur.instanceManager.addInstance(true);
}
and for subform y
if(Incitant52.subFoireAcheteur.subAcheteur.all.length < 3){;
Incitant52.subFoireAcheteur.subAcheteur.instanceManager.addInstance(true);
}