Avatar

Level 7

Is there a reason to use the code you did? It looks like the problem is with the variable's permissions when going through the template.

This code works just fine in that same event:

this.addItem("new item");

As does:

var f = xfa.resolveNode("form1.#subform1[0].field0");

f.additem("new item");