Skip to main content
We have a VF page that displays one company logo in a certain condition, and another in all others.  Code is below:

 

<apex:image id="Logo" value="{!If(objLeadSite.Site__r.Company__r.Name=="XXXX", "https://c.na24.content.force.com/servlet/servlet.ImageServer?id=0151a000000nGvu&oid=00D1a000000XXXX","https://c.na24.content.force.com/servlet/servlet.ImageServer?id=0151a000000nGvy&oid=00D1a000000YYYY")}" />

 

Now, when I land on this page from a related record that should match the Company Name, instead I am presented the "else" image.

 

What am I missing?

 

 
6 answers
  1. Feb 23, 2016, 6:23 PM
    You mean like this:

     

    {!objLeadSite.Site__r.Company__r.Name}

     

    <apex:image id="Logo" value="{!If(objLeadSite.Site__r.Company__r.Na.....?

     

    If so, nothing was displayed on the page above the image.