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

Reset all instances

patra
Registered: Oct 19 2006
Posts: 270

HAPPY NEW YEAR TO EVERYONE!!!

I have a subform with a ADD and REMOVE buttons for instances.
How can I remove all instances with the reset button?
I have set max count to 1.

Thanks

My Product Information:
LiveCycle Designer, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Use the "setInstance()" function. For example, for a repeated subform named "Item" you'd use this JavaScript:

_Item.setInstance(1);


Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script