You have placed all of your content on the Master Pages. These Master Pages are intended for repeating content that appears on each page (i.e. Headers, footers, watermarks, etc ...). Take all of that content and move it to the actual pages. If you look at the hierarchy view then you can minimize the Master Page view and you will see the Page where you shodul place your content. Once you do this it will work as you want.
I took a run at it but I do not know what is content and what should be repeating content.
Action Initiative Plan_Paul.pdf 756.0 K
I moved all relevant data to two regular pages (Page1 and Page2). I am now getting another error.
I want the initial view to be just the first page and to only add the second when the Add Page button is clicked.
Page 2: I set the Min Count to <blank> and Max Count to 1 so that it doesn't initially display. When I click the Add Page button, the error says, 'form1.Page2.instanceManager.addinstance()' is unknown.
I know I am missing something basic and appreciate your assistance.
Action Initiative Plan.pdf 512.0 K
Modified your sampel to make it work.
1. For the Page 2 subform you should set the minsize as 0, themaxsize to 1 and the initial count to 0. In doing this there is no addressable object to script against.
2. In the code that adds the page you have a command:
As there are no subforms for Page2 present you get an error about the object not existing. The Page2 object does not exist yet so you cannot call teh instanceManager method. So you must use another notation to get to the instanceManager. In this instance you vcan use the underscore (_) notation to access the instanceManager of an object that is not part of the layout yet. So your command will be:
3. You may want to disable the button after they add the second page as well as position the cursor in teh 1st field on teh next page. To do this you can add this code:
this.presence = "invisible";
Note that you must reposition the cursor before you hide the object otherwise the hide the button code will not work.
Hope that helps
Action Initiative Plan_Pauls.pdf 727.6 K
Thank you for this excellent help!!