"Reset Form Button" that Clears Form and Deletes Pages.
I have created a form that works pretty well for me. On the top of the form, I have a button to reset the form. This works great and clears all the fillable fields when clicked. On the bottom of the form I have a button to add an additional page from a hidden template, this also is working well and I can add as many new pages as needed. Is there a way that I can add JavaScript to the "Reset Form" button at the top of the page that will delete all of the pages that were added by the button at the bottom of the form? I'd like for the form to become the single page that I started with when I click the "Reset Form Button".
(I am using Adobe Acrobat Pro DC on a Windows 10 Machine.)
Thank you in advance for any assistance you can provide.