Avatar

Level 5

Thanks Paul.

It did not seem to work.

I have tried both ways _psl_list_subform.addInstance(1). And

Psl_list_subform.instanceManager.addInstance(1);

And I am getting the same error.

GeneralError: Operation failed.

  1. XFAObject.addInstance:1:XFA:form1[0]:#subform[0]:psl_list_subform[0]:Table5[0]:Row1[0]:Button[0]:click

The element [max] has violated its allowable number of occurrences.

I have Repeat row for each data item checked off. This field is grayed out for the psl_list_subform.

Within the subform I have 1 table with 1 row, a text box . When the user clicks the “add” button I would like the table to repeat along with the textbox below it.

Using the codes above I have tried with the add button inside the psl_list_subform as well as placing the add button outside the psl_list_subform. I still get the same error.

I have a feeling I am either missing something basic or I am going about this all wrong

Thanks again Paul