I am new to this and finding most of my answers in the Adobe Help or some other resources I have but this one has me stumped. I have a table, and a button to add rows. After rows are added and filled out I need users to be able to delete certain ones. I have a delete button added to the last column of me table, and the button works to remove an instance from the table, the issue is that the instance that is removed is the wrong one, it is always the first one not the row that the button is in. Can anyone help, here is what I have:
Table1._Row1.removeInstance(1)
I know the 1 isn't right, but what do I do to make it remove the current row the button is in.
Thank You!
Solved! Go to Solution.
Views
Replies
Total Likes
Hi,
The parameter for the removeInstance() refers to the index of the repeating row that you want to remove. This is a zero based index.
If you replace the 1 in the brackets with:
this.parent.index
It shoul work.
See an example here: http://assure.ly/gk8Q7a
Niall
Views
Replies
Total Likes
Hi,
The parameter for the removeInstance() refers to the index of the repeating row that you want to remove. This is a zero based index.
If you replace the 1 in the brackets with:
this.parent.index
It shoul work.
See an example here: http://assure.ly/gk8Q7a
Niall
Views
Replies
Total Likes
Yes! You are awesome!
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies