cancel
Showing results for 
Search instead for 
Did you mean: 

Page number not to display

Former Member
0 Kudos

Hi,

My requirements is not to display Page number = 1 in the first pages, Display it from the second page = 2.

I use the 'Page n of m' into my form. Now it displaying in all the pages .But i dont want it in first page only.

I am not friendly in XML code, so not able to figure it out.

As per logic i need to do

if page_number = 1.

make it no_display.

endif.

thats it , But where and how??

this is the copy paste code of XMl source for page number. <draw h="3.175mm" name="Pages" w="0.125in" x="209.55mm" y="273.05mm">.

please reply asap.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I don't know why you need to change XML code. If you are using Adobe Life Cycle Designer to design the form, you can achieve it using FORMCALC or JavaScript.

When you insert 'Page N of M' , Adobe creates 3 fields in object hierarchy i.e TextField CurrentPage, TextField PageCount and Static Text field Pages. You may write FormCalc Script at Subform level on event layout:ready

if ( CurrentPage == 1) then

Pages.present = "hidden"

endif

OttoGold
Active Contributor
0 Kudos

I only wonder if the scripting will work ok on the master page, at least that is a place where would one expect a page numering. Do not touch the XML source, the editor follows your actions and changes the XML source accordingly.

Regards Otto

Former Member
0 Kudos

thanks folks.

good reply. But still i think i have some probs so still not working.

i use 'page n of m' into master page . now master page formcalc is disabl. so did it into bodypage initialization. naturally it is not working.

any resolution..

Thanks Jo

Former Member
0 Kudos

thank you agarwal and otto.

i think i did some mistakes , so its not working . i simply copy paste the sharad's code into formcalc ready layour.

Now the page no is missing from all pages.

any idea?

pls reply asap.

Thank

jo

OttoGold
Active Contributor
0 Kudos

1) reply asap is against the rules

2) you miss { } brackets and the code is, in my eyes, more like Java script than FormCalc

3) check the scripting guides:

http://www.adobe.com/devnet/livecycle/articles/lc_designer_scripting_basics/lc_designer_scripting_ba...

http://help.adobe.com/en_US/livecycle/es/FormCalc.pdf

Otto

p.s.: If you would install LCD 8.1, you could use the syntax check,

check: Note 1176858 - Adobe LiveCycle Designer 8.1 Installation

Former Member
0 Kudos

This code sample was not supposed to be used as it is in your form. It was just to give you an idea. The method is presence, not present as given in code sample before.

Former Member
0 Kudos

hi sharad,

can you please write the exact code.

and where to write? and the formcalc or javascript.

i use this code.

if ( CurrentPage == 1 ) {

Pages.presence = "hidden"}

this one is not working .

i did in into

current page : :ready : layout.

please tell me where exactly we need to code.

thanks Jo

jagdishwar_b
Active Participant
0 Kudos

you can use below approach using Javascript:

consider, you placed 'Page n of m' in the masterpage

then in the Hierachy Palette, you could see following objects.

CurrentPage (Text Field)

PageCount (Text Field)

Pages (Text)

go to the ready:layout of PageCount object, and you can use below script:



this.rawValue = xfa.layout.pageCount();  //this line is already present

//below lines are added to make the Pages object on first page invisible.

if (xfa.layout.page(this) == 1) {
 this.parent.Pages.presence	= "invisible";
}

regards,

BJagdishwar

Former Member
0 Kudos

hi jagdiswar,

Its perfectly working . Thanks a lot.

Thanks,

Jo

Answers (1)

Answers (1)

jagdishwar_b
Active Participant
0 Kudos

a possible solution without using scripting:

In the master pages tab, Create two MasterPages.

MasterPage1

MasterPage2

In the MasterPage1, donot include the 'Page n of m'.

In MasterPage2, include the 'Page n of m'

You might have several BodyPages, in that you dont want the firstpage to show the pagenumber

So For the BodyPage1, if you look the ObjectPalet-> Pagination, for Place: by default, you might see Following Previous. let it be as it is, or you might select Top of Page "MasterPage1"

But for the BodyPage2, go to ObjectPalet-> Pagination, for Place:, select Top of Page "MasterPage2"

all the subsequent pages could be Following Previous

regards,

BJagdishwar