Well this is strange...
I placed a checkbox field on the page(that hides during print). if I check it, it should allow the page to print.
in the prePrint event for the root sub page, I wrote:
this.presence = "hidden";
if(checkbox.rawValue = "1")
{
this.presence ="visible";
}
when I click "print" without checking anything thing the page shows up.
When I look back, the check box is checked!
I tried:
if(checkbox.rawValue = "0")
{
this.presence ="hidden";
}
if(checkbox.rawValue = "1")
{
this.presence = "visible"
}
same result.
I tried with if...else
same.
It seems that Livecycle is forcing the page to be visible!
Any ideas?!