cancel
Showing results for 
Search instead for 
Did you mean: 

Adobe Forms--Displaying text in last page

Former Member
0 Kudos

Hello Gurus,

This is my requirement :

I have to display the text as footer in the last page dynamically .

For eg: If i have three pages i want to add text in footer in the third page dynamically in adobe forms.

This is very urgent.Please give me the solution to this question.

I will reward you points.

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

Hi,

In that case we have to keep all the fields that needs to be printed only on last page into a subform and then write the code in script for the subform.

Find the current page number and total number of pages compare them and use.

and then use the presence attribute to hide fields till it reaches the last page.

Regards,

sasi

Former Member
0 Kudos

Hi Sasidhar,

Thanks for your reply. I don't know how to write the script coding.

Can you please provide me the code and in which event should i write the code.

It will be very helpful to me.

Thanks

Former Member
0 Kudos

Hi,

Please write the code in the initialize event of the subform.

Language:Form calc:

Run at : Client.

var curpage = $layout.page ( ref ( $ ) )

var totpages = $layout.pageCount()

if ( curpage ne totpages ) then

$.presence = "hidden"

endif

Please let me know if you find any issue.

Regards,

sasi

Former Member
0 Kudos

Hi Sasidhar,

I have inserted a sub form. In this sub form i have used a static text at last of the page and written in the text as footer window.

When i see in PDF preview it is displayed in the last page as footer window. I have written the code in the initialize event also.By writing this code it is displaying the text in the last page.What is the difference between those two. Can you explain me once the code.

Thanks

Former Member
0 Kudos

Hi,

There are two scenarios.

We can specify the footer in the table section also.

Table

-header

-body row

-footer.

When we specify in this way, when ever the items are finished it will print immediately may not be at the end of the page. If items are finished in the middle of the page what ever we kept in the footer will come in the middle of the page.

But in our case we want to print at the end of the page, i.e. its positioned at a particular place on the lay out.

This is the difference.

Please let me know if you find any issue, or send me your form to my mail id sasidhar.yalamanchili@gmail.com.

I will check and let you know.

Regards,

sasi

Former Member
0 Kudos

Hi Sasidhar,

Can you please check your mail.I have sent the PDF Form.

Thanks,

Karan

Former Member
0 Kudos

Hi Kiran,

I got your point.

In your case you have three pages.

And you know in which page you wantt o print the text.

But for example i have only one page.

And i kept my subform on this page.

And when we are running the actual program the data is flowed into three pages.

But the footer section should come only on my third page only.

In that case the above code which i have given will help you.

But in your case as you know that you will have always three pages.Then no need to write any script instead we can keep the text in the page that we wanted.

This is the major difference.

Hope i have given the answer to your question.

Regards,

sasi

Former Member
0 Kudos

Hi Sasidhar,

Thanks for your reply.I have got the point what you have explained.

Now i have to take it in first page the text as footer and display the output for third page as footer not in first and second.

This is not for only three pages how many pages we take this should be applied.

Thanks,

Karan

Former Member
0 Kudos

Hi Sasidhar,

I am able to span the data in the table through one page to three pages.I have kept the text in sub form and kept as positioned.

I have done what you have said to keep the table in flowed and text in positioned.Still i am not getting.

Can you tell how the text should be displayed in the third page footer.

Thanks,

Karan

Former Member
0 Kudos

Hello,

If you need the footer in perticular position on the page, place the footer in master page.if you wanna print the footer in last page only, you hav to write scripting as sasi told in layout ready.

Answers (0)