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

Changes in Header not used after Pagination

DanielKunz
Registered: Jan 22 2008
Posts: 55

Hello,
 
I've build an interactive form with repeating subforms. After pagination the header is displayed without problems.
But when I change the header (hide fields, show other hidden fields) while creation, the changes are just displayed on the first page. After the pagination the changes are lost.
Any ideas to fix that issue?
 
Best regards,
Daniel

My Product Information:
LiveCycle Designer, Windows
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
Hi,

the presence has to be set individually for each instance of the subform or field.
If you want to set all instances at once you need a loop.

Here an example.
It searches for all fields named "Textfeld1" and sets the presence to hidden.
  1. for (var nPageCount = 0; nPageCount < xfa.host.numPages; nPageCount++) {
  2. var oFields = xfa.layout.pageContent(nPageCount, "field");
  3. var nNodesLength = oFields.length;
  4. for (var nNodeCount = 0; nNodeCount < nNodesLength; nNodeCount++) {
  5. if (oFields.item(nNodeCount).name == "Textfeld1") {
  6. oFields.item(nNodeCount).presence = "hidden";
  7. }
  8. }
  9. }

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs