See edit below
I have a print run that I wish to create a single template for. The data contains records for email or post only. Therefore using the EmailAddress field searching for the “@” symbol. I need some advice as to the best way to achieve the following.
The email page has its own background image and is a simplex document.
The post pages has two background images and is a duplex document.
I hope to be able to set up a condition once I get this to workflow that will branch all the email simplex documents to its own PDF and all the post duplex pages to their own PDF.
Any ideas would be greatly appreciated.
Regards,
Sharne
EDIT:
Managed to find a solution. Created two sections, one for each making post a duplex. Then added a control script as follows.
if (record.fields[“EmailAddress”].indexOf(“@”) >= 0) {
merge.template.contexts.PRINT.sections[‘PostOnly’].enabled = false;
}
else {
merge.template.contexts.PRINT.sections[‘EmailPage’].enabled = false;
}
If anyone has a better way, I’m all for better ideas/methods. Thanks.