Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Add additional pages and remove pages in pdf form

Avatar

Level 3

Hi all,

I'm trying to achieve 2 things with my form:

  • How can I remove the first blank page (its giving me a headache)
  • How can I script the 'add page' button to automatically add unlimited additional pages (page 4 to be precise) to my form?

My form is in the link below. I would appreciate your help.

Thanks.

http://www.4shared.com/document/ye12txZS/gavin.html

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

The link is not available. You would need to publish the file.

However from the previous version you would need to follow the example in the "add page" button.

First you will need to set the page to Flowed layout. This will allow you to select the subform that contains the image field/text field AND set the subform to repeat (in the Object > Bindings tab).

The addInstance script will then work.

Hope that helps,

Niall

View solution in original post

3 Replies

Avatar

Level 10

Hi,

If you select page1 and go to the Object > Pagination palette and change the Place from "Top of next page" to "Follow previous". The additional page will disappear.

To add new instances of page3, you need to go to the Object > Binding palette and specify that that subform is to be repeated.

Then in the click event of the add page button, you would have the following JavaScript (please note that "_" is shortand for instanceManager).

_Page3.addInstance(true); 

Here is your form back.

https://acrobat.com/#d=DIiQhLm9ERTV*PQjV-FH5Q

Hope that helps,

Niall

Avatar

Level 3

Hi,  Im trying to duplicate subforms in my form.  I don't know what seems to be the problem.

Could you have a look please?  https://acrobat.com/#d=1QNUD*jtaWssvK2w4RE*ew

I'm trying to get the subform that has 2 image fields in Page2, to duplicate when 'Add pic' button is clicked.

Avatar

Correct answer by
Level 10

Hi,

The link is not available. You would need to publish the file.

However from the previous version you would need to follow the example in the "add page" button.

First you will need to set the page to Flowed layout. This will allow you to select the subform that contains the image field/text field AND set the subform to repeat (in the Object > Bindings tab).

The addInstance script will then work.

Hope that helps,

Niall