First off I am using Adobe 9 standard v9.5.5. Some background on the document: It opens to a single page that contains multiple fields and four buttons. Two of the buttons submit the document to email addresses. One button, add another, creates a new page based off of a hidden template and for the most part mirrors the first page. It looks identical but only replicates one button; add another. These three buttons are working exactly as intended.
Low and behold the fourth button is what I am stuck on. I essentially want it to reset the entire document. This means clearing the fields on page one and deleting any spawned pages if the user hit the button add another. I can not for the life of me find a thread that helps.
To all that read through this; thanks!!
This code will do that:
Gilad - Thank you! This worked perfectly!!