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

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

Avatar

Avatar
Level 1
San_Data1
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
San_Data1
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
View profile
San_Data1
Level 1

02-12-2016

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);

Accepted Solutions (0)

Answers (0)