I have a 2-page form where the second page is set as a template. I've then added a button - "Add a New Page" with this script:
var a = this.getTemplate("biweekly")
this.pageNum = this.numPages-1;
However, the problem that I am having is that the data entered in the fields on the first page is being copied to the second page even the template is changing the names of the fields in the second page.
Can anyone see what I'm doing wrong here and how to correct it?