Expand my Community achievements bar.

SOLVED

Adding row in tables

Avatar

Level 1

How to set the remove row button in a position subform so it won't expand with the table row. When I try to wrap my button the script stops working.

This is my script for remove button:

tAns = xfa.host.messageBox("Are you sure you want to remove this item?","Remove item?",1,2)

       if (tAns ==4) {

    Table1._Row1.removeInstance(this.parent.index);

}

Script for add button:

Table2._Row1.addInstance(true);

1 Accepted Solution

Avatar

Correct answer by
Level 1

Solution is (this.parent.parent.index);

View solution in original post

1 Reply

Avatar

Correct answer by
Level 1

Solution is (this.parent.parent.index);