In this guide, we will explain how to use the advanced templating option for hiding and showing sections based on field merge values.
IF conditional logic example:
<!-- {{#if 879f-f484-fcb7}} -->
<p>This is first system Generated Data.</p>
<!-- {{else}} -->
<p>This is second system Generated Data.</p>
<!-- {{/if}} -->
COMPARE conditional logic example:
<!--{{#compare 8818-9b89-26d1 'Option One' operator='=='}} -->
<p>Text shown if pdf1 is selected in the select field</p>
<!--{{/compare}} -->
<!--{{#compare 8818-9b89-26d1 'Option Two' operator='=='}} -->
<p>Text shown if PDF2 is selected in the select field</p>
<!--{{/compare}} -->
<!--{{#compare 8818-9b89-26d1 'Option Three' operator='=='}} -->
<p>Text shown if PDF3 is selected in the select field</p>
<!--{{/compare}} -->
Both examples can be used on the form PDF editor to show or hide sections of the PDF.
For any questions, please contact us - [email protected] or the Formyoula in-app chat 🙂