Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
NSC | Use Checkbox as a Condition on Advanced PDF/HTML Templates
There are scenarios where users need to use a Checkbox as a condition on Advanced PDF/HTML Templates.
To apply a condition on the Source code editor we need to use the If condition statement. To apply this condition to a checkbox, the code should be like this:
<#if record.custbody1 == true> <!-- do something if checked --> <#else> <!-- do something if unchecked --> </#if>
Kindly check a sample scenario below:
The template will print Checked if the Custom Checkbox is checked, otherwise, it will print Not Checked:
Since the checkbox in the record is not checked, the template printed
@Kristoffer Viray-Oracle | Ask A Guru | Let us know what contents you like to see in the Community. You can vote here.