Script to delete all rows in dynamic table
can anyone help me with a script to delete all rows in LiveCycle pdf form dynamic table, please?
Here are some details: I have a dynamic table, which has Add Row and Delete Row buttons. My form also has a Reset Form button. However, if user creates Rows in the table by using Add Row button and then afterwards click a Reset Form, only data in table cells is cleared but all the created rows are still there.
var RowsNumber = form1.page1.Table.Row.instanceManager.count
for (i=1; i<=RowsNumber; i++)
this solve only 50% of the problem, because it only deletes every second row, leaving other half still there.
I assume there should be a very elegant solution, and I'm looking forward to hear your advise.
Thanks a lot!