on 06-28-2010 12:03 PM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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://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
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.