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
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"/>
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.