on 07-11-2008 11:29 AM
I want to print a field only on last page.
Could you help me ?
Regards
Antonella
Hi,
Write a condition to display the subform only when the current page number = total number of pages, else subform should be hidden.
This will work for sure.
Thanks,
Raj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Antonella,
When you're placing a field on your form, just place it on the last page (end of all other fields). As long as all the content before this field is wrapped within Flow Layout subform\page, this field will automatically end up on the last page. Or is your requirement more tricky!!
If your requirement is more tricky, then you can use the following codes to get it done:
//Get current page number
var thisPageNum = xfa.layout.page(this);
//Get total pages
var totalPages = xfa.layout.pageCount();
Hope this helps,
harman
thank you so much,
I have resolved with yours help.
The form is not "FORM READY" but "FORM LAYOUT".
The complete Code is the following
The complete Code is following
var thisPageNum = xfa.layout.page(this);
var totalPages = xfa.layout.pageCount();
if (totalPages==thisPageNum)
{
TextField1.presence = "invisible"
}
else
{
TextField1.presence = "visible"
}
Regards
Antonella
thank you so much,
I have resolved with yours help.
The form is not "FORM READY" but "FORM LAYOUT".
The complete Code is the following
The complete Code is following
var thisPageNum = xfa.layout.page(this);
var totalPages = xfa.layout.pageCount();
if (totalPages==thisPageNum)
{
TextField1.presence = "invisible"
}
else
{
TextField1.presence = "visible"
}
Regards
Antonella
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
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.