Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Unable to get _.instanceManager.addInstance working

Avatar

Not applicable
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

Not applicable
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

Not applicable
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.