I have a table in Livecycle that has 16 static rows. More rows can be added or removed dynamically at the end of the table.
I would like the user to be able to delete one of the static rows if they want however I can't get the script to work.
I have a button at the end of the row with the script:
I have tried various forms of this script such as not using the shorthand for "instanceManager", leaving "true" out, etc. Where it says "Row2" I would use this script for the subsequent rows, Row3, Row4 etc.
I have tried it with the initial count set to 1 and tried it set to zero. The table is in a flowable subform.
A row cannot be set to 0 instances, if you want to remove a row, you will have to hide it using its presence property...
But if you are using 1 table for 16 different rows, why are you not setting the table with dynamic rows and have an initial count to 16, then you could remove any rows you want with the removeInstance method