So, your button is not close to the add button, so the reference to the instance manager will be different.Try using;xfa.resolveNode("form1.#subform.#subform.CARDS._Table1").setInstance(1);It can be easier if the subforms are named, so you don't have to use the class references like "#subform", whic...