Standard Checkbox Images
pdf and sample images from the Salesforce built-in library are available on the community site.
Sometimes, however, we want something simple. Sometimes we want to create a formula field that displays a simple checkbox (or an empty box). This is currently not possible, but has been suggested as a Salesforce Idea.
Until that is built into the platform, feel free to use these two images in an image formula field (storing them in the documents folder):
Or download this zip file and put it into a static resource for use in a Visualforce page.
One of Salesforce CRM’s coolest features from a “bright shiny object” standpoint (i.e. something that aids productivity but also looks flashy) is the image formula field. Jamie Grenney first wrote about this a while ago, and his
Scott Hemmeter says
Or use the relative link “/img/checkbox_checked.gif” or “/img/checkbox_unchecked.gif” and don’t store them yourself.
And make sure you tell your users that you can’t report on this field being true or false. It’s just for display.
David Schach says
Great point, Scott. Do you know where we can get a list of the contents of the /img/ and /img/samples/ directories?
Scott Hemmeter says
I don’t know how to get that. I just knew this example because I have dealt with it before. What I typically do is look around Salesforce for images I like and use them. Copying them is just fine too.