Jump to content

Hide pages of Versioned product


Jeff Odom

Recommended Posts

Is it possible to hide multiple pages of a versioned product so the user only has to review the first 2 pages? I have an 8 page versioned product with repeated fields on each page (example: Company Name; Company Logo; Company Phone) the first 2 pages is a postcard. The postcard is the only part I want the user to review, but when the order is placed I want a PDF of all pages.
Link to comment
Share on other sites

Jeff

I'm not a Javascript guru like some of the people on here, but his should work.

 

Name your pages p1 - p8 and make them unused.

 

//OnRecordStart

 

//access the “isOnlinePreview” property and the “isPreview” property

 

onlinePreviewVal = FusionPro.Composition.JobOptions.isOnlinePreview;

desktopPreviewVal = FusionPro.Composition.isPreview;

 

//if this is a preview composition or a desktop preview

 

if (onlinePreviewVal == "Yes" || desktopPreviewVal == true)

{

FusionPro.Composition.SetBodyPageUsage(“p1”, true);

FusionPro.Composition.SetBodyPageUsage(“p2”, true);

}

else

{

FusionPro.Composition.SetBodyPageUsage(“p1”, true);

FusionPro.Composition.SetBodyPageUsage(“p2”, true);

FusionPro.Composition.SetBodyPageUsage(“p3”, true);

FusionPro.Composition.SetBodyPageUsage(“p4”, true);

FusionPro.Composition.SetBodyPageUsage(“p5”, true);

FusionPro.Composition.SetBodyPageUsage(“p6”, true);

FusionPro.Composition.SetBodyPageUsage(“p7”, true);

FusionPro.Composition.SetBodyPageUsage(“p8”, true);

}

Link to comment
Share on other sites

  • 2 weeks later...
×
×
  • Create New...