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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

LCD ES2 Trying to Clear Only Certain Fields in Form with Repeating Rows

San_Data1
Level 1
Level 1

Hi! I am working with a form that has repeating rows. I am trying to set up a button that will clear only certain fields on the form. I have tried several scripts, but have not been successful. The script below was kindly provided by this forum some time back. I changed the names of the fields to match mine, but I keep getting the error - syntax error near token "(" on line 2 column 4. Any advice you can provide is greatly appreciated!

var n = form1.Page1.Table1.Row1.instanceManager.count;
for(var i = 0; i < n; i++){
   
var f = "form1.Page1.Table1.Row1[" + i + "].Cell1, form1.Page1.Table1.Row1[" + i + "].Cell2";
    xfa
.host.resetData(f);

0 Replies