Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Adding row in tables

chantalh6331450
Level 1
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
chantalh6331450
Correct answer by
Level 1
Level 1

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

View solution in original post

1 Reply
chantalh6331450
Correct answer by
Level 1
Level 1

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

View solution in original post