on 06-16-2010 11:15 AM
I need to print a text if there is a next page (like: "Continued on next page...").
I am trying to use the following JavaScript code:
if (xfa.layout.pagecount()==xfa.layout.page(this)) this.presence = "invisible";
The text gets printed on all pages, regardless of the number of pages.
If instead of that code I write:
this.presence = "invisible";
then it works. The field is hidden.
Why doesn't it work with the condition?
I am writing the code in the initialise event. Could that be the reason?
I have changed the form to Interactive XML.
It is my first JavaScript code in the Adobe form.
Nevermind... Found the solution myself:
data.MasterPages.Page1.Suplltext.continueNextPage::ready:layout - (JavaScript, client)
var v1 = xfa.layout.page(this);
var v2 = xfa.layout.pageCount();
if (v1 == v2) this.presence = "invisible";
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.