Duplicate pages but change auto text fields name
Hello, I tried and now I need help with an application I am building...
I have a button that can produce spawned hidden page tenplates via the Javascript action, but when I do with the same feature on the same hidden page, it retains the field names and data. Is there a way to produce the same hidden pages multiple times, but automatically changed the field data names in the new page so copied data doesn't duplicate?
Or must I create a duplicate template for each possible click and change the names myself?
Or is there a way to duplicate the page directly without merging the field names (thus, creating new field data).
Here is the code I use for the spawning of the hidden template:
var a = this.getTemplate("EmploymentPage");
a.spawn(this.pageNum+1,true,false);
this.calculateNow();
Just trying to save some time here.
Thanks in advance 🙂
