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

Master Pages - Can I add a page before my master page?

Avatar

Level 2

I have a form that is showing my final page as a master page.  I have an add button on the page before that adds a group of information when you click it.  As I understand it, the master page guards the positioning of that page.  My issue is that I now need to make that group of information larger and it requires a second page, but the master page will not allow for the page insertion.  I know I must have a master page and though I would really like to keep the final page static, I would be willing to change the first page from a normal page to a master page but I can't seem to find how to that either. I need to add a page in between.  Any suggestions?

27 Replies

Avatar

Level 10

See the corrected example in the previous post. You can compare the various settings between the two forms that radzmar and I are talking about.

N.

Avatar

Level 2

I see the example around the minimum requirement, but when I pull it up in the actual form the minimum is grayed out.

Avatar

Level 2

When I go to the PAGE 2 subform, I am able to change the minimum to 1 occurance, however, when I try to change it from positioned to flowed, it changes the look of my form.

Avatar

Level 10

Hi,

When a page/subform is set to flowed, then all of its contents are stacked in  the direction of the flow (top to bottom or western).

The trick is to wrap all of the objects that are not repeatable/dynamic inside a positioned subform. This positioned subform will move within the flowed layout of the page, BUT its contents will remain in their relative x/y positions.

So try and organise objects into positioned subforms before you change the page to Flowed.

Here is an example that looks at repeating subforms: https://acrobat.com/#d=tIpEHFadQtSOefZkU9EBfQ. The page is set to Flowed, but each subform is set to Positioned.  

Hope that helps,

Niall

Avatar

Level 2

Thank you. You have been very patient and I appreciate it! I have all the subforms corrected to be on a flowed master page but positioned within the repeatable form. I have the minimums set to 1. I have copied all of the code into each button script, but the buttons are still not working, so I must be missing one more piece. Here is the link if you can still help? https://acrobat.com/#d=kMP47DB0vSyf6L9eoIXtHg

Avatar

Level 10

No problem!

There are still a couple of problems with the form. First it was still saved as a static form. If you want dynamic behaviour you need to save it as a Dynamic XML Form in the save as dialog:

Parallels Desktop1.png

The script in the click event of the ship to button was still incorrect. You have two sections that were both trying to add new instances. I took out one and corrected the other:

if (_Customerinfo.count == _Customerinfo.max)

{

     xfa.host.messageBox("You have reached the maximum number of items allowed.", "Combining Instance Manager Concepts", 1);

}

else

{

     _Customerinfo.addInstance(1);

     xfa.form.recalculate(1);

}

This is working now. You will need to look at the script and form structure and replicate in the other buttons.

Here is your form back:

https://acrobat.com/#d=RTM86skQWEuA8WeRWxW4tA

Hope that helps,

Niall

Assure Dynamics

Avatar

Level 2

YOU ARE AWESOME!!!! Form is working great. I even added some extra buttons for more flexibility. Thank you so much!