Copy link to clipboard
Copied
I am using the script below to add pages to a fillable form it a button is selected. If a certain button is selected it adds 3 pages, all of which have their own script. My issue is when all 3 are added it takes you to the last page. I am looking to have it take you to the next page. For instance, the button to add these additional pages is on page 1, so they will be added as pages 2, 3 and 4, and I want to go immediately to page 2, but currently it takes you to page 4. Any ideas? Thanks in advance.
var a =this.getTemplate("Short Form" );
a.spawn(2,false, false);
this.pageNum++;
Use
this.pageNum = 1;
Copy link to clipboard
Copied
Use
this.pageNum = 1;
Copy link to clipboard
Copied
Worked perfectly. Thanks for your help.
Copy link to clipboard
Copied
I am trying to redevelop a report that generally has more than one page but can also be just one page.
var a =this.getTemplate("Short Form" );
a.spawn(2,false, false);
this.pageNum++;
Short Form above represents what? Let's say I have an Investigations Report which contains most of the who, what, why, when info along with pedrigree information and then there smallish narrative section all on page1. Page 2 is mostly a blank large small for contiuation narrative. I would like staff to be able to click a button that would generate page 2 and then if neccsary click a button on page 2 that would generate page 3 and so on. Also how are Page # of # created. thank you.
Copy link to clipboard
Copied
"Short Form" is the name of a template page.