Java Script to add pages to a fillable form.

Community Beginner ,
May 04, 2021 May 04, 2021

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++;

TOPICS
How to, JavaScript, PDF forms

Views

568

Likes

translate

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct Answer

Adobe Community Professional , May 04, 2021 May 04, 2021
Use this.pageNum = 1;

Likes

translate

Translate

Translate
Adobe Community Professional ,
May 04, 2021 May 04, 2021

Copy link to clipboard

Copied

Use

this.pageNum = 1;

Likes

translate

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 04, 2021 May 04, 2021

Copy link to clipboard

Copied

Worked perfectly. Thanks for your help.

Likes

translate

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines