Can anyone advise how to get return yes/no results...
# advancedpdf
d
Can anyone advise how to get return yes/no results in a cell when returning a checkbox value from a saved search? I'm using Netsuite's recommendation, ie.
Copy code
<#if record.checkbox_fieldID?string == "Yes">
// code to be executed if condition is true
<#else>
// code to be executed if condition is false
</#if>
But if I set true condition to output yes and false no, I get no for every field. The field is sourcing from custom records if it makes any difference.
s
if you are working with the formula field, best bet is case when then else when then end Otherwise you can check what it is, but the freemarker also supports boolean, so it probably wont be yes/no, but instead true or false, without the speechmarks
i'd try
Copy code
<#if record.checkbox_fieldID == true>
or even
Copy code
<#if record.checkbox_fieldID>
[…]if you don't know the visibility of the field[…]
Copy code
<#if (record.checkboxfield?is_boolean && record.checkboxfield) || (record.checkboxfield?is_string &&
 record.checkboxfield== "T")>
🙌 1