Discussions

Check out Oracle NetSuite upcoming events and conferences here
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Update your Profile with your Support type to get your Support Type badge.
Expand your NetSuite knowledge by joining our Ask A Guru Live sessions. RSVP on this event now.
Get ready to take on exciting new challenges and become the next SuiteMaster of the Month!
Join the largest gathering of the NetSuite Community at SuiteWorld in Las Vegas, September 9-12! Discover cutting-edge innovations, attend insightful sessions, network with industry leaders, and elevate your business to new heights. Register here!

NSC | Use Checkbox as a Condition on Advanced PDF/HTML Templates

edited Mar 16, 2023 7:30AM in SuiteCloud / Customization

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.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!

Leaderboard

Community Whiz

Quarter 3 (Jul-Sep 2024)

This Week's Leaders

This Month's Leaders

All Time Leaders