I have created the visual force page and i have used custom links in object,when we click the custom link,it will open as pdf,in that document checkbox value is displaying as true or false and i want that pdf document as checkbox itself with tick mark or without tick mark,without the value of true or false displaying in pdf

Interest is a checkboxfield in particular object,i want to display the checkbox as same checkbox with tickmark or non tickmark,without displaying true or false in pdf document of Visual force page?

I have tried:

<apex:outputText value="Interest Source: " style="font-size:88%;font-weight: bold;color: #4A4A56;"/>
<apex:outputText value="{!nonApprovedPT.Interest_Source__c}" style="font-size:88%;color:#006600;"/>

cananyone help me regarding on this?


I got around this when making some email templates by outputting a "√" character instead of a checkbox. Since there's no apex:outputCheckbox, you need to have a read only apex:input instead, but I don't think you can include form tags in a pdf.

Pretty simple stuff too:

<apex:outputPanel rendered="{!CheckboxField}">√</apex:outputPanel>
  • input is based on when user clicks checkbox or not? – SFDC1000 Jan 9 '18 at 14:51
  • Can you rephrase that? I'm not sure what you're trying to ask. – battery.cord Jan 9 '18 at 14:53
  • I am using checkbox field in visualforce page pdf,but it is displaying value as true or false,i want as checkbox with tickmark and without tickmark – SFDC1000 Jan 9 '18 at 14:54
  • I guess I didn't specifically say this, but you can't. From the docs: "Don’t use standard components that aren’t easily formatted for print, or form elements such as inputs or buttons, or any component that requires JavaScript to be formatted.". The pdf can't display form elements, such as apex:inputText, and theres no method to display a checkbox without creating a apex:inputCheckBox and setting it to readonly. So, you have to get creative, and use either images, or like I did, a checkmark character. – battery.cord Jan 9 '18 at 14:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.