Quantcast
Channel: Adobe Community : Discussion List - LiveCycle Forms
Viewing all articles
Browse latest Browse all 1160

Make visible a field when deleting a page in Livecycle

$
0
0

Hi everybody

 

When I add a page, the footer of the last page is automatically deleted. It works perfectly. But I would like that the footer appears again on the last page when I delete the current page.

 

Here is the code used  with the initialize event :

 

for (var i = 0 ; i < xfa.resolveNode("ira._Page1").count; i++)

{

          if (i < xfa.resolveNode("ira._Page1").count - 1)

{

                    xfa.resolveNode("ira.Page1[" + i.toString() + "].Footer").presence = "hidden";

}

else

{

                    xfa.resolveNode("ira.Page1[" + i.toString() + "].Footer").presence = "visible";

}

}

 

this one used with click event for adding a page :

 

_Page1.addInstance();

 

xfa.host.pageDown();

 

app.execMenuItem("FitPage");

 

and at least for deleting a page

 

this.parent.parent._Page1.removeInstance(this.parent.index);

 

this.parent.parent._Carte.removeInstance();

 

Thanks for advance for your help.


Viewing all articles
Browse latest Browse all 1160

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>