Expand my Community achievements bar.

Unable to get _.instanceManager.addInstance working

Avatar

Former Community Member
I created a very simple Expense Report form using Adobe Designer 7.0 and I'm not able to get the addInstance function to work. What I'm trying to do is have a button for my users to add additional line items. I have created a subform called "BasicInfo" with Type: Flow Content. Under this subform is another subform called "Items". The Items subform has the "Repeat subform for each data item" enable. I created a button with the following javascript: "item.instanceManager.addinstance(true);".



The button is not working. What am I doing wrong? Your help is appreciated.
2 Replies

Avatar

Former Community Member
Hi Tommy,



Check out the following link, Tom got a nice sample form that should help you.



http://www.windjack.com/DownLoads/SimpleDynamicFormWlineNum.pdf



Regards,



Chris Fourie

Avatar

Former Community Member
I keep getting this error message:



GeneralError: Operation failed.

XFAObject.addInstance:1:XFA:F[0]:P1[0]:Button1[0]:click

The element [max] has violated its allowable number of occurrences.



Please help!



Thanks.