function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Kent ManningKent Manning 

How do I insert checkboxes into a PDF report?

I am designing a service report in visualforce.  I'm rendering this as a PDF document.  I have eight check boxes that need to be displayed on this form. When I try to dynamically bind the object with <apex:outputText value="{!ServiceWorkRequest.warranty__c}"/>  I get a true or false output - not the a checked or unchecked  check box.  How does one insert a check box into a PDF document?  I only need to display the static check box as checked or unchecked based on the underlying database value.   It does not have to be interactive.

 

Any ideas on how to proceed?

 

Thanks for your input.

Pradeep_NavatarPradeep_Navatar

Currently salesforce doesn't support forms in PDF. The best way is to use an image of a checkbox. Store two checkbox images(checked and unchecked) in a static resource and use them in the PDF document.

 

Hope this helps.

Kent ManningKent Manning

Thanks!

 

I thought that was how I was going to have to do it.  They say visualforce is object aware, but it's not really object aware for everything.