on 12-30-2014 3:19 PM
Hi ,
Can you please tell me how to print the text with next page number on the adobe form ?
Example : Lets say I have 3 pages getting printed. On the First page the text should be printed as "Continued on Page2" and on the
second Page the text should be printed as " Continued on Page3".
Nothing should be printed on Page3 as it is the last page.
I understood that this should be handled through script editor. I have done some trial and error in Form Calci, but not able to do it.
Can you Please help me out?
Best regards,
Karthik Ganti.
Hello,
Can anyone help me out in acheieving the above?
Best regards,
Karthik Ganti.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Madhu,
Thank you. But I was not able to achieve it. I have tried the below code in Layout ready event.
this.rawValue = xfa.layout.page(this) + 1;
But after writing the above code, if there are 3 pages, On the 3rd page also the text " Contined on Page 4" is printing. But it should not happen for me as there are only 3 pages.
On the last page the text should not be printed. Therefore I have modified my code and written in Layout event.Below is my code.
this.rawValue = xfa.layout.pageCount();
var count = xfa.layout.page(this);
if ( count > this.rawValue );
{
this.rawValue = xfa.layout.page(this) + 1;
}
else;
{
this.presence = "hidden";
}
But the above code is not working.
Could you Please help me in correcting the code.
Best regards,
Karthik Ganti.
Hi Madhu,
I have also tried changing the code as below. But still it didnot work.
var tot_count = xfa.layout.pageCount();
var count = xfa.layout.page(this);
if ( tot_count > count );
{
this.rawValue = xfa.layout.page(this) + 1;
}
else;
{
this.presence = "hidden";
}
Could you please help me out ?
Best regards,
Karthik Ganti.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
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.