Jeff Odom Posted October 24, 2017 Share Posted October 24, 2017 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 More sharing options...
jwhittaker Posted October 24, 2017 Share Posted October 24, 2017 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 More sharing options...
Dan Korn Posted October 24, 2017 Share Posted October 24, 2017 You don't need that much code. You can leave your pages unnamed and used, and just do this: for (var i = 3; i <= 8; i++) FusionPro.Composition.SetBodyPageUsage(i, !IsPreview()); Link to comment Share on other sites More sharing options...
Jeff Odom Posted November 6, 2017 Author Share Posted November 6, 2017 Thanks Dan, this worked perfectly! Link to comment Share on other sites More sharing options...
Recommended Posts