Expand my Community achievements bar.

remove instances from another Subform

Avatar

Level 4

Hello everyone, I have a problem.

I have two Subform, the first Subform has two buttons (+ and -) with which I can add and delete instances that I create in the second Subform.

I have problem delete button that fails to delete instaze second Subform

can you help me??

1 Reply

Avatar

Former Community Member

The removeInstance command that you are runninng accepts a parameter that will tell it which one to remove. So you can get the index of the subform that you are on by using this.parent.index. So your command shoudl look like:

.....removeInstance(this.parent.index)

paul