I have added some new instances of a subform using addInstance method on click of a button.
I want to delete any instance on click of a delete button at run time . The removeInstance( INTEGER param ) method needs an int parameter.
I have added some new instances of a subform using addInstance method on click of a button.
I want to delete any instance on click of a delete button at run time . The removeInstance( INTEGER param ) method needs an int parameter.
For example, if the script is run from a click event on a button inside the repeated subform (i.e. a delete button)
The subform index is:
var subIndex = this.parent.index;
If you want to use a button that is outside the repeated subform you'll need a way to id the particular subform that you want to delete, like a check box in each of the repeated subforms.
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script