+ Start a Discussion
yazid akki 15yazid akki 15 

i won't display any picture or text any 2 or other case

Hi All,

I need to display a picture in VFPage. In my custom field, I have the formula 
image("/resource/STR_TRIANGLE" & case( IconFlag__c, 1,"", 2,"",'none') ,"",20,20)
I want to display the STR_TRIANGLE picture, if FlowerFlag ==1, if FlowerFlag === 2  or other, there is nothing.
It displayed a dark pictureshadow  when it’s 2 or other .

Any idea Please?

SonamSonam (Salesforce Developers) 
Could you please share the VFpage code, the condiation should be specified the way it has been down in the sample code here:
      <apex:image id="theImage" value="{!If(e.Country == "Germany", $Resource.Logo_GmbH, If(e.Country =="United Kingdom", $Resource.Logo_UK, $Resource.EUQuote_Logo_blue))}" width="25" height="12"/>

https://developer.salesforce.com/forums/ForumsMain?id=906F000000097mvIAA
Krishna SambarajuKrishna Sambaraju
You can use
<apex:outputText value="{!yourobject.ImageFormulafield}" escape="false"/> in the visualforce page to display image from a fomula field.

For creating formula fields using IMAGE refer following link.
https://help.salesforce.com/apex/HTViewHelpDoc?id=useful_advanced_formulas_image_links.htm&language=en_US