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
b.gonzalezb.gonzalez 

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!
User-added image

Best Answer chosen by b.gonzalez
Rahul_sgRahul_sg
try specifying escape parameter as false:

<apex:outputText value="{!Opportunity.Traffic_Light__c}" escape="false"/>

All Answers

Rahul_sgRahul_sg
try specifying escape parameter as false:

<apex:outputText value="{!Opportunity.Traffic_Light__c}" escape="false"/>

This was selected as the best answer
b.gonzalezb.gonzalez
I tried it and I am recieving the following errors:

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 "/>".
b.gonzalezb.gonzalez
Oh nevermind, I had a typo in my line of code. It works! Thank you!