These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Hiding flowed XFA subform until needed

csearl
Registered: Aug 10 2006
Posts: 28
Answered

Hi,
I am designing a five page dynamic XFA form with five subforms, each of which can be cloned or added using the instance manager. I can add multiple versions of each and save as an .xdp file and reopen the form just fine.

What I really need to do next is to "hide" two of the five so that only three are available then the document first opens. I want to allow the user to add or make visible the hidden pages when needed via a button.

It this possible?

Thanks in advance.

My Product Information:
LiveCycle Designer, Windows
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
You can hide "everything" in the form.

When you want to hide pages at first opening the form you only have to set their presence to hidden in the object tab.

Later you can make them visible thru a button action

Formular1.Page1.presence="visible";

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs

csearl
Registered: Aug 10 2006
Posts: 28
radzmar,
Thanks for that idea.

The structure of my form looks something like this:
topmost.flowedsub1.positionedsub1.fields
topmost.flowedsub2.positionedsub2.fields
topmost.flowedsub3.positionedsub3.fields
topmost.flowedsub4.positionedsub4.fields
topmost.flowedsub5.positionedsub5.fields

I would like subforms flowedsub3 and flowedsub4 to be hidden when initially opened.

I was experimenting with setting the flowed form's Bind Min Count to 0, Max to 999, and Initial Count to 0. I can't seem to find a reference to the subform so I can use the instance manager to add a new instance of it.

I also need to make sure that when I open/import a previously saved .xdp for the form that it displays all the forms used to display all the data.

So if the form starts off initially with certain subforms made "hidden", how would you script it to display the form's data when opening the .xdp later? With my current approach there is no additional scripting, the form just expands to display the data as needed.