8 Replies Latest reply: Jan 5, 2011 7:37 AM by Bill95722 RSS

    Still don't seem to understand removeInstance correctly...

    Bill95722 Community Member

      I have a repeating subform with a Delete button. In the Delete button Click event I have this code:

      _subform.removeInstance(this.index);

       

      However, every time the Delete button is Clicked only instance 0 is removed. Naturally, I would desire the subform

      containing the Delete button that has been clicked be the subform removed, not subform (0).

       

      I have read the other posts about removeInstance but they don't seem to address my problem.

       

      Please advise on what I am missing, Thank you!