I have tried everything that I can think of to get the Remove Instance button to work to remove the CURRENT instance but I can't figure it out.
Basically I have a table with a section. Within this section I have one row that the user can add more instances of. I added a remove instance button but it acts erratically and I can't get it to remove the CURRENT instance. Sometimes it deletes the first instance..sometimes the last instance in the repeating section...it's all over the place and I can't figure out why.
Code for Remove instance button:
this.resolveNode('PackageSection._ItemRow').removeInstance(this.parent.index);
if (xfa.host.version < 8) {
xfa.form.recalculate(1);
}
Hierarchy for table:
Page1>
Column2Subform>
Table1>
PackageSection>
ItemRow (this has a cell subform with the add/remove instance buttons)
Any guidance would be appreciated. Link to actual form: Untitled3Sample.pdf