What is the correct syntax for insert a variable into brackets? I have the following java script.
----
var tcount = Subform2.instanceManager.count - 1
xfa.host.resetData("form1.Subform1.Subform2[tcount]");
----
tcount
returns 0 (checked with text field)
and
xfa.host.resetData("form1.Subform1.Subform2[0]");
properly executes a reset.
but
xfa.host.resetData("form1.Subform1.Subform2[tcount]");
fails
any ideas?
Thank you!
Tyler