Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Hide Page Numbers

Hello community

I have the following requirement: I have my page numbering embedded in the master page of my interactive form.

I have to hide this page numbers on the first and the last page of the document.

How can I achieve that? Where do I have to embed what FormCalc Code?

Thanks in advance!

Former Member

Hi Alexander,

In the Initialize Event write the following code.

var currPg =
var pgCnt = xfa.layout.pageCount()

if (currPg == 1 or currPg == pgCnt)
  $.presence = "hidden"
  $.relevant = "-print"



0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question