These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

addInstance() not working.

geeare1
Registered: Mar 9 2008
Posts: 4
Answered

Hi, I'm new to LiveCycle and can't seem to get the addInstance() method to work. Although I'm pretty sure I have the script written correctly I'd appreciate it if anyone could look at this and tell me why it doesn't work.

The form is named 'form1', the page is named 'page1, the table is named 'Table1' and there is one row named 'Row1' as well as a button to add new rows.

Using javascript in the 'click' event for the button I have:

xfa.form.form1.page1.Table1.Row1.instanceManager.addInstance(1);

When I click the button nothing happens. Can anyone tell me why?

Thanks,
-gr

My Product Information:
LiveCycle Designer, Windows
scottsheck
Registered: May 3 2007
Posts: 138
You have to check off one more box in the properties of that row1. I don't have the screen up now, but it says something like 'Repeat rows' . You can accept the defaults below it which allow you to set the maximum # of rows, etc.
geeare1
Registered: Mar 9 2008
Posts: 4
Thanks very much, that did it.