on 03-22-2011 6:46 AM
Hi ,
The scenario is " I want to Hide subform based on page condition like if page number is > 1 the subform should not print"
I have written the code Subform-initilize event in Javascript like ,
if (xfa.host.currentPage > 1)
{
this.presence = "hidden";
}
But above if condition in not working .
Please help me to solve this problem.
Regards,
Sanket.
Hi Sanket,
Use following script in the initialize event of subform.
var pageNum = xfa.layout.pageCount();
if(pageNum>1){
this.presence = "hidden";
}
Thanks & Regards,
Sanoosh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.