Form title not printed on last page Adobe Form
Hi Experts,
In my form on the last page (so in my example 3 pages) it will never print the form title and order number.
The following script is in place to determine of there are more pages:
Form.frmHiddenGlobalFields.txtFormTitle::ready:layout - (FormCalc, client)
// Set the form title as the combination of title and document ID, separated by colon
//First Page (always available)
if (HasValue(txtChangedDocument.rawValue) == 0)
then
xfa.resolveNode(Concat("#pageSet[0].mst1.FirstPage.frmHeader.txtTitle")) = Form.frmHiddenStaticTexts.lblSalesOrder.rawValue
// xfa.resolveNode("#pageSet[0].mst1.FirstPage.frmHeader.txtTitle") = Concat(Form.frmHiddenStaticTexts.lblSalesOrder.rawValue, ": ", Form.frmHiddenGlobalFields.txtDocumentID.rawValue)
else
xfa.resolveNode(Concat("#pageSet[0].mst1.FirstPage.frmHeader.txtTitle")) = Concat(Form.frmHiddenStaticTexts.lblChangeToSalesOrder.rawValue, "\u000d", Form.frmHiddenStaticTexts.lblSalesOrder.rawValue)
// xfa.resolveNode("#pageSet[0].mst1.FirstPage.frmHeader.txtTitle") = Concat(Form.frmHiddenStaticTexts.lblChangeToSalesOrder.rawValue, "\u000d", Form.frmHiddenStaticTexts.lblSalesOrder.rawValue, ": ",Form.frmHiddenGlobalFields.txtDocumentID.rawValue)
endif
//Second Page (must only be executed if there is are subsequent pages)
var pageCount = xfa.layout.pageCount();
if (pageCount > "1") then
if (HasValue(txtChangedDocument.rawValue) == 0)
then
xfa.resolveNode("#pageSet[0].mst2.SubsequentPage.frmHeader.txtTitle") = Concat(Form.frmHiddenStaticTexts.lblSalesOrder.rawValue, ": ", Form.frmHiddenGlobalFields.txtDocumentID.rawValue)
else
xfa.resolveNode("#pageSet[0].mst2.SubsequentPage.frmHeader.txtTitle") = Concat(Form.frmHiddenStaticTexts.lblChangeToSalesOrder.rawValue, "\u000d", Form.frmHiddenStaticTexts.lblSalesOrder.rawValue, ": ",Form.frmHiddenGlobalFields.txtDocumentID.rawValue)
endif
endif
But always the last page will not show these values. How can I change the script in such a way that also the last page has a title and ordernumber printed in the header (master form).