cancel
Showing results for 
Search instead for 
Did you mean: 

Adobe - How to make fix layout but the total amount in the main is flexible

Former Member
0 Kudos

Hi to all,

Need help, i am new with adobe forms and do some search but i didnt find one.

the problem is this the main/content area is display with a box then a total at the end. Now when the document is only 1 page then the total will be display in the page 1. If document has 2 pages then the total will be shown in page 2. remeber that this total is diplay in fix postion. what i did right now is the total amount will be displayed both pages. please see details below.

main / content area

________________________

| description | amount |.

| description | amount |.

| description | amount |.

| | |.

| | |.

| | |.

| | |.

| | |.

| total | amount| -


> fix position. cant use flowed. if positioned the total will appear all pages

actually my master pages contains the fix box with TOTAL and TOTAL AMOUNT at the end.

the spell word of the amount and the signatory.

under design view i only flag the description and amount of line item flowed to trigger the second page.

now hence the total and total amount is in fix position under master pages. it will appear on all pages.

how will i make fix position but it will appear only on last page.

thanks in advance

regards,

Etrafanob

Accepted Solutions (1)

Accepted Solutions (1)

Kanagaraja_L
Active Contributor
0 Kudos

Following Form Calc Script Calculating Total page count if Current Page no NE Total page then field should be invisible.

Put the following Code in Layout ready of the particular Amount field

var curpage = $layout.page ( ref ( $ ) )
var pagecnt = $layout.pageCount() ( ref ( $ ) )
if ( curpage <> pagecnt ) then                       
$.presence = "invisible"
endif

Kanagaraja L

Edited by: Kanagaraja Lokanathan on Dec 2, 2009 12:12 PM

Former Member
0 Kudos

hi,

thanks for the reply. the logic make sense but i am generating the page and page count using javascript not formclac with this code

this.rawValue = xfa.layout.page(this);

this.rawValue = xfa.layout.pageCount();

taken from the library custom page n of m function.

Edited by: Etrafanob on Dec 3, 2009 11:59 AM

Former Member
0 Kudos

hi Kanagaraja,

your code works.. its just some missing code in

if ( curpage NE pagecnt ) then

thanks a lot

Kanagaraja_L
Active Contributor
0 Kudos

Yes the Symbol for NE is missed.

Kanagaraja L

Answers (0)