cancel
Showing results for 
Search instead for 
Did you mean: 

How to get Second last page number of Script form

Former Member
0 Kudos

I have to print total amount on second last page of PO. i.e. before last page. So, i need to put one condition before standard text in the form. Please tell me how can i get the page number of second last page. i.e. "Last page -1".

Then i will put condition as

IF &page& = &Secnd_last_page&

print TOTAL amount.

Just i need to get value of Secnd_last_page. Please help. Its very urgent. Thank you in advance

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi, You will have total number of pages in the field called formpages.

so before that declare a field of type I say v_lpage.

v_lpage = formpages - 1.

then in the condition tab put below condition

page eq v_lpage.

this will resolve your issue.

Regards,

Nageswar

Former Member
0 Kudos

Mathematical operator does not work in Script window language. I believe it could be done by calling a subroutine.