Skip to main content
Inspiring
April 5, 2019
Question

Correctly spawning a page

  • April 5, 2019
  • 1 reply
  • 780 views

For the life of me, I can't use this function correctly.  I just want to spawn a blank template and have the page be correctly numbered in the bottom when the user completes the form but needs another page to go on.

If I leave the template visible (as page one), it duplicates a filled copy of my template.  I need the new page to be blank.  So I figured the template needs to be blank and hidden. for it to spawn correctly.

To hide a blank template, I first need to spawn a copy with bRename: true which correctly puts a prefix to the page created "P1".  But once I spawn a second page from the hidden template, it has the same prefix of "P1".  Then the others gets incremental correctly.  So the first two pages are still Identical.

and for the page numbering I have these 2 calculate script

event.value = this.pageNum + 1  //this value changes according to the page a value has been changed on

event.value = this.numPages //this show the correct value

What am I not getting right?

This topic has been closed for replies.

1 reply

Bernd Alheit
Community Expert
Community Expert
April 5, 2019

You can hide a blank template without the spawn of a copy.

Inspiring
April 5, 2019

Wouldn't the user get an empty document then?  Because there is nothing else in the doc than this one page and a button to spawn more of the same page.

Bernd Alheit
Community Expert
Community Expert
April 5, 2019

OK I understand.