Hi,
I think I fixed the issue…
I add 3 Blank pages in my form instead of using a repeat Blank page.
Here is the first Blank page's calculate event javascript :
var myCount = xfa.layout.pageCount();
var blankNumber = 4-(myCount%4);
xfa.layout.relayout();
if(blankNumber >0 && blankNumber<4)
{
this.presence = "visible";
}else{
this.presence = "hidden";
}
The second Blank page's code should only change the "if(blankNumber >0 && blankNumber<4)" to "if(blankNumber >1 && blankNumber<4)",
The third Blank page's code should only change the "if(blankNumber >0 && blankNumber<4)" to "if(blankNumber >2 && blankNumber<4)",
Thanks,
Jing