Javascript button that duplicates a page, clears form fields and renames form fields making them unique?
I have a fillable PDF with multiple pages. On one page is a table with a lot of form fields and sometimes our users need extra pages with this table on it. I have a button that duplicates the page but if there is any information on the original page it pulls that as well. Is there a way for the button to duplicate the page with blank and unique form fields as well as bring the button along with it in case more pages are needed? Current JavaScript being used is below:
var expTplt = getTemplate("800.02 Table");
expTplt.spawn(numPages,true,false);
