Quantcast
Channel: Adobe Community : All Content - LiveCycle Designer
Viewing all articles
Browse latest Browse all 5571

render a blank page if the form ends with odd pages

$
0
0

Hi,

 

i am designing a form in Livecycle es4 designer, the form is saved as .xdp and we have a .xml as input, based on the data stream the form extends to n number of pages, i need to end my form on an even page always,

if there are 3 pages based on the data, i need to show an blank page as the  4th page. if there are 4 pages based on data stream we need not show the extra blank page.

 

i have added a blank page in my designer made it hidden from layout, , wrapped in a sub form  and in the layout editor :ready i have written the following script

 

var pageCount = xfa.layout.pageCount();

if(pageCount%2==0){Blank.presence = "hidden";}

{Blank.presence = "visible";}

 

but my form now which is 3 pages does not append the blank page, any direction will be very helpful.

Thanks in advance

CW


Viewing all articles
Browse latest Browse all 5571

Trending Articles



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