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?
Views
Replies
Total Likes
Well,
master pages are designed to give form a basic layout (logos, pages size etc.), just like a backgound image of a desktop.
Everything else in the form (fields, buttons, tables etc.) should be placed one one or more body page(s).
You will need to setup your form in that way, that everything dynamic (show/hide subforms etc.) happens on the body pages.
Views
Replies
Total Likes
Ok. I understand, but then why am I not able to insert a page above the master page?
Views
Replies
Total Likes
XFA-Forms have a tree structure, you can imagine such as layers.
Root (layer 0) > Master Pages (layer 1) > Body Pages (layer 2) > Subforms/Form Objects (layer 2, 3, 4...).
Master Pages are always located a layer deeper than Body Pages so you cannot add a Body Page between or in front of them.
Views
Replies
Total Likes
So is there a way to make my master page the first page instead of the last page so that I can add pages to the form?
Views
Replies
Total Likes
Here is my document. The master page is the last page. I need to add a page before it in order to extend the information on the previous page.
Views
Replies
Total Likes
Sorry, the link seems to be missing
Views
Replies
Total Likes
Hm. Not sure why - but here it is again.
Views
Replies
Total Likes
Sorry, still no form.
Views
Replies
Total Likes
Just in relation to sharing your form: you cannot attach your form to a posting, neither by responding directly on the forum nor by attaching the form to an email response.
The best way is to upload your form to a file sharing site, like Acrobat.com and then share the published link here.
Niall
Views
Replies
Total Likes
Thank you for the information. The link in Acrobat.com is https://acrobat.com/#d=rP19-DlvIcAWoy*u6xwFhQ.
Views
Replies
Total Likes
Thank you. My forum ran cold. Since the issue was not being able to move the master page, I recreated the whole form and the master page was not in the way. However, now the add buttons are not working. The link is below, can you tell me where I went wrong with the "add" buttons? Thank you for your help! Arla
Views
Replies
Total Likes
Hi,
I'll jump in...
There are a few problems with the form:
I have the "Add more ships to" button working, see if you can get the others going.
Here is the form back to you: https://acrobat.com/#d=Eh*hknpY8vgVHAQSTIpMsw
There is a bit of adjustment in the layout after changing the page to Flowed.
Paul Guerette is giving a free online Tech Talk on dynamic forms and I would recommend it. Details are here: Tech Talk: Developing Flowable Form Content
Hope that helps,
Niall
Views
Replies
Total Likes
Great! Thanks! I will let you know how it works out for me. I really appreciate your help!
Views
Replies
Total Likes
I found a few error.
1. Your script in the "AddSubformButton1" references to "form1._Customerinfor" which is a typing error. Correct it to "form1._Customerinfo"
2. The Subform "fCustomerinfo" is not repeatable because the surrounding subform is set to positioned.
It has to be a flowing subform to allow several instances of the included subforms.
3. Your script in the button references to a variable "oSubform" that picks up the value of the variable "sSubformSOM" but this one does not contain a usable SOM expression to the desired subform!
var sSubformSOM = "<value>";
It should look something like
var sSubformSOM = "xfa.form.form1.subform1";
Views
Replies
Total Likes
Ok. So I tried in Preview to make the ship to button work and it says that I have reached the maximum number of entries allowed. I know that a minimum and maximum need to be set for each subform that are repeatable, but I'm not sure where to find that.
Views
Replies
Total Likes
Hi Arla,
If you select the repeating object, in this case the ship to subform. Then go to the Object > Binding palette:
You don't have to set a min count, max count or initial count for this to work. The form I posted previously just has a min count specified.
The message you are getting is in the if statement in your script.
Niall
Views
Replies
Total Likes
It's because of the second point I mentioned before.
Your form design is not flowing so the subforms cannot be repeatable.
Start with the subform that sourround the subforms to repeat.
Make it flowing (Object palette > Subform tab).
Then select the subforms and make them repeatable (Object palette > binding tab).
Views
Replies
Total Likes
I see your screen print, but the min is grayed out in the design view. Please see below.
Views
Replies
Total Likes
Sorry, Radzmar. I cannot make sense of what you are telling me.
Views
Replies
Total Likes
The secont Page in your form hierachy (unnamed) is the sourrounding subform for the subform "Customerinfo".
To get "Customerinfo" repeatable, the page has to be set to be flowing first (Object palette > Subform tab).
Views
Replies
Total Likes