I’ve read about hiding certain elements like images and paragraph in PReS Connect Designer using Conditional Scripts, Is it possible to hide an entire page using the same procedure. For example I have a 4 pager Letter and I want to Hide Page 2 if a certain field has a specific value.
If the page is represented by a print section you can disable it in a control script.
You cannot hide individual pages wihtin a section but when using separate sections you could use a Control Script to show/hide the respective section. In version 1.8 we will introduce a script wizard to achieve that, this way you don’t need to write a script.
To dynamically show/hide a section in your output using a Control Script:
var section = merge.template.contexts.PRINT.sections['Section 2'];
if (record.fields["province"] == "QC") {
section.enabled = true;
} else {
section.enabled = false;
}
Hope this helps,
Erik
Hi Erik!
As PReS Connect 1.8 is already released, could you tell me, if this script wizard mentioned above is available, where can I find it?
Kind regards,
Roland
Hi Roland,
Simply right mouse click a section in the Resources panel and choose Make Conditional… See also: PlanetPress Connect 1.8 User Guide
Best,
Erik