Expand my Community achievements bar.

SOLVED

Can't get buttons to add/remove parts of a complex table

Avatar

Former Community Member

I have a form with tables inside tables and need to add/remove lines and entire sections of the table, but can't seem to get the buttons to work.  The form can be found here: https://acrobat.com/#d=aS0xCt4bzIRGqip-HBtrXg  When I open the form in acrobat and try the buttons, I am prompted to save the form, but nothing is added/removed.  Eventually I need to fill in a second form with the same data, or else this table wouldn't be so complicated.  Any idea as to what I am missing here?

Karl

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

1. your form is saved as static form.

To all/remove rows the forms needs to be saved as dynamic PDF.

2. The reference syntax to add/remove rows is wrong.

Use this the add rows.

_ItemRow.addInstance(true);

or to remove rows

_ItemRow.removeInstance(this.parent.index);

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

Hi,

1. your form is saved as static form.

To all/remove rows the forms needs to be saved as dynamic PDF.

2. The reference syntax to add/remove rows is wrong.

Use this the add rows.

_ItemRow.addInstance(true);

or to remove rows

_ItemRow.removeInstance(this.parent.index);

Avatar

Former Community Member

Ugggh!!!  I set the File->Properties Default : Server PDF Render Format to dynamic and didn't do the Save As.  I guess that vacation wasn't so good for me after all...  Thank you.

Karl