I have a numeric field set up with default set to 1, when I press the "Add" button a new version of the subform is added after. My numbering is all messed up. If I press the add button, the first subform becomes 2 and the added one stays 1. When I press the add button on the second version of the subform, subform 1 becomes "3", subform 2 becomes "2" subform 1 becomes "1". But if I press the add button on subform 1 again, subform 1 stays "2", subform 2 says "2" and subform 3 says "1"
My "Add" button coding is
_Subform.addInstance(1);
Subform.NumericField.rawValue =
parseInt(Subform.NumericField.rawValue) + 1;
My delete button coding is
Subform.removeInstance(_Subform.count-1);
It's set like this to always remove the "last" subform, but might be worthwhile to be set up to remove "that" instance of the subform but I don't know how to do that. Can anyone help?