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

Save as...Adds unwanted instance!

patra
Registered: Oct 19 2006
Posts: 270
Answered

I have create a dynamic LCD form and any time when I use the commant "save as" to give a different name and reopen it again always adds an extra unwanted instance to my form!!!

Here is the script I use for a add Button(Click event):

form1.SubALL.Sub_2.Table1.Row1.Button1::click - (JavaScript, client)
// Invoke the Instance Manager to add one instance of the detail subform.
details._detail.addInstance(1);

//Invoke the recalculate method to include the field values from the added row in calculations.
xfa.form.recalculate(1);

Thanks

My Product Information:
LiveCycle Designer, Windows
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
I had a similar issue a few days ago.
In my case the form added 7 extra instances of a page.

I checked the whole form and dicovered that a date/time field with a global binding caused the effect.
After setting the field binding from global to normal, the form worked find.

Maybe your problem has a similar reason.

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs

patra
Registered: Oct 19 2006
Posts: 270
I never could think that binding can cause the effect!
THANKS for your help my friend!
I have spend so many hours trying to find out where the problem!!!
Thanks again