Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session
SOLVED

Reset Data Row Button

Avatar

Level 2

Stuck. I'm trying to setup a button to reset only the data in the row where the button is. Anyone? Pls.

1 Accepted Solution

Avatar

Correct answer by
Level 7

Add this to the click event of your button.


xfa.host.resetData("this.parent.tfData1,this.parent.tfData2,this.parent.tfData3");


Where tfData1, 2, and 3 are replaced by whatever you named your fields.

View solution in original post

2 Replies

Avatar

Correct answer by
Level 7

Add this to the click event of your button.


xfa.host.resetData("this.parent.tfData1,this.parent.tfData2,this.parent.tfData3");


Where tfData1, 2, and 3 are replaced by whatever you named your fields.

Avatar

Level 2

Awesome. thanks. I didn't want to specify fields and the row is instance managed so I just used xfa.host.resetData("this.parent")