Avatar

Level 10

The removeInstance methods needs the subform index to remove. By placing a 1 in there you are always removing the 2nd instance (indexes are 0 based). So what you need is the index of the instance that you areon. You can get this by using this.parent.index (I am assuming that your buttons are 1 subform level deep in the hierarchy from the repeating subform). So combining this together your remove command shoudl be:

Table3.Row2.instanceManager.removeInstance(this.parent.index);

Paul