Quantcast
Channel: Adobe Community : Discussion List - LiveCycle Forms
Viewing all articles
Browse latest Browse all 1160

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

$
0
0

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


Viewing all articles
Browse latest Browse all 1160

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>