Hi Cristina,
I do not have access to your file because of my firewalls, so I can't help you directly in your code. I should also mentioned that I'm not a pro, but I do have a code that works to add or remove one row by clicking in one button AND only that new row, nothing else.
Maybe you will find it useful comparing my code and yours.
To ADD a row:
- Select the Bottom or Radio Button that will trigger the copy of this object to be multiplied.
- Inside the Scripts: Click event, you will place the code:
var newInst = _NAMEOFYOUROBJECT.addInstance(1);
to DELETE the newly created row:
3. Select the bottom, then Inside the Scripts: Click event place:
If ( _NAMEOFYOUROBJECT.count == 0 )
{
xfa.hostmessage (“Nothing to delete.”, “”, 1);
}
else {
_NAMEOFYOURBOJECT.removeInstance(1);
}
//////// _NAMEOFYOUROBJECT (yes, with the " _ " ) in your case will be the name of your row that you are multiplying in your table.