Ok, I answered part of my question. I found out why I was getting error messaes.
I would still like to know however, how i can have a minimum of 0. Does anyone know if this is possible?
1. Kee the minimum instance as 1 but hide the 1st row.
2. Upon clickin the add button add a new instance and set the presence property to 'visible'
var newRow = Table1._Row1.addInstance(1);
newRow.presence = 'visible'
1 person found this helpful
Yes, you can have a subform with its occurrence set as 0 and then added when a user clicks an add button.
In a simple form I have a button with the following script _Subform1.addInstance();
There is a subform named SubForm1 that exists and has on the binding tab of the object Repeat Subform for Each Data Item "checked"
The min, max and initial count are not selected. This will have it that when the form is rendered there is no instance of 'Subform1' and that when the add button is pressed then 'Subform1' is added once.