cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Adobe Forms - Manage multiple startpages

0 Likes
2,284

Hi,

I have a requirement where I want to develop an Adobe Form for our invoices, and for a specific country we need a different header design.

So this is the requirements:

  • Generic layout: Header 103mm height / Table 153mm Height
  • Specific Country Layout: Header 135mm height / Table 141mm Height
  • Page 2 (Overflow): Entire Page for both scenarios

What I did was the following:

3 Main Pages:

  1. Generic Page 1 - I designed here the generic country header + content area covering the 153mm for the table
  2. Specific Page 1 - I designed here the specific country header + content area covering the 141mm Height
  3. Page 2 - I included a content area covering all the page

2 Body Pages:

  1. One for both Page 1 Master Pages where i designed only the table
  2. One for the second Page where I designed only the table (again)

Then I have this for pagination:

Page 1:

Page 2:

And this script in the master pages for initialization/layout:ready/form:ready

var lv_data = xfa.resolveNode("$record.GV_STARTPAGE").value; if( lv_data == "INDIA") { this.presence = "visible"; } else { this.presence = "hidden"; }

To hide the non-required page 1 based on a variable

The problem I'm facing is with the Pagination of page 1 - Place

If I choose On Page1_India, it prints India fine, but not generic. If i choose On Page1_Generic it prints generic fine but not India. And I don't know how to change this parameter via script based on my variable.

Tried using "following previous", but only works for the Master Page 1 that I have on top (the content area is consumed by it even though i'm doing presence = "hidden").

Also tried using 3 Body Pages, one for each master page, but again, it's consuming always the master page on top, then going for overflow on page 2, only then going for the correct master page 1.

Am I doing anything wrong here? I think I would be able to do it if I could change pagination->place via script, but don't know which variable I need to change.

Thank you

Accepted Solutions (0)

Answers (0)