You need to sign in to do that
Don't have an account?
VF page: not rendering image on the page?
I am referencing the following field on a VisualForce page:
Field Label: Approval Status
Field Name: Traffic_Light
API NAme: Traffice_Light__c
Data Type: Formula
Formula: IF (AND(Submitted__c, Discount_Approved__c), IMAGE("servlet/servlet.FileDownload?file=01580000001RppU", "Discount Approved"),
IF (AND(Submitted__c, Discount_Denied__c ), IMAGE("servlet/servlet.FileDownload?file=01580000001RppZ", "Discount Denied"), null))
This is what I have on my VF page:
<br></br><b> Approval Status: </b> <apex:outputText value="{!Opportunity.Traffic_Light__c}" />
However, when I launch the visualforce page, the following is populating for the Apporval Status field:
<img src="servlet/servlet.FileDownload?file=01580000001RppU" alt="DiscountApproved" border="0"/>
But the attached image should be appearing.
I need the image to appear on the VF page.
I appreciate the help!

Field Label: Approval Status
Field Name: Traffic_Light
API NAme: Traffice_Light__c
Data Type: Formula
Formula: IF (AND(Submitted__c, Discount_Approved__c), IMAGE("servlet/servlet.FileDownload?file=01580000001RppU", "Discount Approved"),
IF (AND(Submitted__c, Discount_Denied__c ), IMAGE("servlet/servlet.FileDownload?file=01580000001RppZ", "Discount Denied"), null))
This is what I have on my VF page:
<br></br><b> Approval Status: </b> <apex:outputText value="{!Opportunity.Traffic_Light__c}" />
However, when I launch the visualforce page, the following is populating for the Apporval Status field:
<img src="servlet/servlet.FileDownload?file=01580000001RppU" alt="DiscountApproved" border="0"/>
But the attached image should be appearing.
I need the image to appear on the VF page.
I appreciate the help!
<apex:outputText value="{!Opportunity.Traffic_Light__c}" escape="false"/>
All Answers
<apex:outputText value="{!Opportunity.Traffic_Light__c}" escape="false"/>
Error Error: ApprovalRequestApprovedPDF line 32, column 100: Element type "apex:outputtext" must be followed by either attribute specifications, ">" or "/>"
Error Error: Element type "apex:outputtext" must be followed by either attribute specifications, ">" or "/>".