Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.

reset each row individually in a table

Avatar

Level 2

Hi

I have a form which expands, If I have more then 1 row then I want to be able to reset each row individually.

I have been using

xfa.host.resetData ("Row1"), I have also tried replacing row1 with each text field.

xfa.host.resetData ("xfa.form.form1.TimeSheet.timesub.Table1.Row1.Date")

every time I click on the rest button it resets all the text fields.

1 Reply

Avatar

Level 9

Hi,

You have to set the particular instance of the row for which you want to reset all the data of that row.

Try this one :

var i = this.Row1.index;

xfa.host.resetData("form1.page1.Table1.Row1["+ i + "]");

Thanks,

Bibhu.