How to show Checkbox in Advanced PDF?

I need to show the checkbox in Advanced PDF, checked/Unchecked based on the selection on Netsuite form. I did try doing this:

<input type="checkbox" name="isretired" checked="true"/>

This works, but it’s changeable, and the user can change the value (check or uncheck) on the PDF, while i want it for just viewing purposes, whatever is selected in the NetSuite form. Kindly suggest.

Rookie Asked on March 29, 2021 in SuiteScript.

I usually use this to get what exactly in NetSuite UI

<#if record.checkbox == true> [<span style=”color:green; font-size:12px;”> √ </span>]<#else>[<span style=”color:red; font-size:12px;”> X </span>]</#if>

on April 23, 2021.
Add Comment
1 Answer(s)

<#if ${FIELD} == true> <input type="checkbox" id="myCheck" disabled checked="true"/> <#else> <input type="checkbox" id="myCheck" disabled /> </#if>

Rookie Answered on March 31, 2021.

thank you for ur answer. But system gives this error:
Attribute name “disabled” associated with an element type “input” must be followed by the ‘ = ‘ character.

on March 31, 2021.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.
  • This site made possible by our sponsors:   Tipalti   Celigo   Become a Sponsor   Become a Sponsor