I seem to be having an issue where boolean runtime parameters are not parsed correctly.
The documentation for Create Print Content says:
Boolean values need to be entered as either “true” or “false”.
However, both “true” and “false” are evaluated as true. Interestingly, a blank value is evaluated as false.
Working:
Not Working:
Designer Template Parameters:
Control Script:
var section = merge.template.contexts.PRINT.sections['FAQs'];
if (!section) {
throw "'FAQs' not found";
}
section.enabled = !merge.template.parameters.LetterOnly;