A test document to mimic the problem (rather than having to deal with the actual form):
Pageset {pgs_Main} Restrict Page Set Occurrence: True; Min Count: True - 1; Max Count: True - 1
Pageset {pgs_Q1} Restrict Page Set Occurrence: True; Min Count: True - 1; Max Count: True - 1
Masterpage {mpg_Q1} Restrict Page Set Occurrence: True; Min Count: True - 1; Max Count: True - 1
Content Area {cnt_Q1}
Masterpage {mpg_Q1ovrflo} Restrict Page Set Occurrence: True; Min Count: False; Max Count: True - 2
Content Area {cnt_Q1ovrflo}
Pageset {pgs_Q2} Restrict Page Set Occurrence: True; Min Count: True - 1; Max Count: True - 1
Masterpage {mpg_Q2} Restrict Page Set Occurrence: True; Min Count: True - 1; Max Count: True - 1
Content Area {cnt_Q2}
Masterpage {mpg_Q2ovrflo} Restrict Page Set Occurrence: True; Min Count: False; Max Count: True - 3
Content Area {cnt_Q2ovrflo}
Subform [page] {pge_Q1} Content: Flowed; Allow Page Breaks within Content: True; Place: On Page "mpg_Q1"; Keep With Previous: False; Keep With Next: False; After: Continue Filling Parent; Overflow: None; Overflow Leader: (None); Overflow Trailer: (None); Data Binding: No data binding; Repeat Subform for Each Data Item: False; Min Count: disabled; Max Count: disabled; Initial Count: disabled; Layout - Auto-fit Height: True (ghosted)
Subform {sfm_Q1} Content: Flowed; Allow Page Breaks within Content: True; Place: Following Previous; Keep With Previous: False; Keep With Next: False; After: Continue Filling Parent; Overflow: Go To Content Area "cnt_Q1ovrflo"; Overflow Leader: (None); Overflow Trailer: (None); Data Binding: No data binding; Repeat Subform for Each Data Item: False; Min Count: disabled; Max Count: disabled; Initial Count: disabled; Layout - Auto-fit Height: True (ghosted)
Text Field {txt_Q1} Allow Multiple Lines: True; Limit Length: False: Max Chars: blank; Limit Length to Visible Area: False; Allow Page Breaks within Content: True; Keep with Next: False; Type: User Entered - Optional; Data Binding: Use Name (txt_Q1); Layout - Height, Expand to fit: True
Subform [page] {pge_Q2} Content: Flowed; Allow Page Breaks within Content: True; Place: Top of Page "mpg_Q2"; Keep With Previous: False; Keep With Next: False; After: Continue Filling Parent; Overflow: None; Overflow Leader: (None); Overflow Trailer: (None); Data Binding: No data binding; Repeat Subform for Each Data Item: False; Min Count: disabled; Max Count: disabled; Initial Count: disabled; Layout - Auto-fit Height: True (ghosted)
Subform {sfm_Q2} Content: Flowed; Allow Page Breaks within Content: True; Place: Following Previous; Keep With Previous: False; Keep With Next: False; After: Continue Filling Parent; Overflow: Go To Content Area "cnt_Q2ovrflo"; Overflow Leader: (None); Overflow Trailer: (None); Data Binding: No data binding; Repeat Subform for Each Data Item: False; Min Count: disabled; Max Count: disabled; Initial Count: disabled; Layout - Auto-fit Height: True (ghosted)
Text Field {txt_Q2} Allow Multiple Lines: True; Limit Length: False: Max Chars: blank; Limit Length to Visible Area: False; Allow Page Breaks within Content: True; Keep with Next: False; Type: User Entered - Optional; Data Binding: Use Name (txt_Q2); Layout - Height, Expand to fit: True
The idea here is to (eventually) use automation to control how many additional pages any given question can support. The above will allow 2 extra pages for the first question and 3 extra pages for the second question. [Edit]:This works.This doesn't work if more than 2 pages of content is attempted to be inserted. What also doesn't work is changing the max count values to 1 (the red numerals above). Then the form goes crazy: blank pages overwrite existing pages and the extra content eventually appears at the end of the document in new pages.
I apologize in advance for providing all the info above; I'm sure most of it isn't relevant but I've been fighting with all sorts of inheritance issues & wanted to make sure there's as much information as possible to investigate that. I have spent a full day trying to figure out how to get around this issue & am completely stumped. I feel like I'm missing something simple but can't see it for the life of me.
P.S. OT: but what on earth is the object reference to get a hold of the max count value via JS? I've not had any luck in finding that out either.
Message was edited by: Geoff Webb, DCDHS ISU