Standard Checkbox Images

May 11, 2009 · Filed Under Configuration, salesforce.com 
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 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):

true 

false 

Or download this zip file and put it into a static resource for use in a Visualforce page.

Comments

1 Tweet

4 Responses to “Standard Checkbox Images”

  1. Scott Hemmeter on May 11th, 2009 14:34

    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.

  2. David Schach on May 11th, 2009 14:40

    Great point, Scott. Do you know where we can get a list of the contents of the /img/ and /img/samples/ directories?

  3. Scott Hemmeter on May 11th, 2009 18:30

    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.

  4. Checkbox Formula Field in Visualforce : X-Squared On-Demand on July 16th, 2009 08:50

    [...] keeping with the theme of checkboxes and formulas, we provide an easy way to create a checkbox formula field using Visualforce: the [...]

Leave a Reply




Additional comments powered by BackType