Avatar

Level 10

You can get the instance of the subform that you are on by using the parent.index property. Now that you have the instance you can use it in the removeInstance method of instanceManager. Assuming that you have a delete button on each subform the code would look something like this:

subformName.instanceManager.removeInstance(this.parent.index)

If you want to re-number the subforms then you coudl get a total count of subforms (subformName.instanceManager.count). Then create a for loop that will take each subform and update the number to the current count + 1 (subform instances are 0 based).

Paul