Brian Sherman (CAPREIT LP) asked in #VisualforceFeb 23, 2016, 6:17 PMVisualforce page conditional image not workingWe 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?22 answersSortSort by DateSort by Most HelpfulSort by DateLoad more comments...Brian Sherman (CAPREIT LP)Feb 23, 2016, 8:33 PMSo the way this works is that autoreplies for inquiries go out - each has a link that passes the record ID back to the page as a parameter.Reply in Slack
Brian Sherman (CAPREIT LP)Feb 23, 2016, 8:33 PMSo the way this works is that autoreplies for inquiries go out - each has a link that passes the record ID back to the page as a parameter.