how to fix addinstance() regrouping information after saving the form?



I have a table in a form that includes First Name, Last Name, Address, etc. Under this table I have a button to add an instance of this form under it, when I am working with the form the addInstance() code adds it under and everything looks fine however, when I save the form, close it and open it back up all of the First Name fields are grouped together, all of the Last Name fields are grouped together, etc. and the only way to get the formation back is to use the delete button I've created which deletes one the of the entries while simultaneously regrouping the information in the correct order. Is there a way to get the information to stay in the correct grouping while keeping the form dynamic?

This is what I have currently when clicking the New Instance button

// this._consumer.addInstance(1);

View Entire Topic