Here is the solution from Niall old post:Okay, In the hierarchy check the relative path from the remove button to the ontreatment subform. If, for example, the remove button is in another subform, you would need to take this into account when determining the index of the repeatable ontreatment subfo...