You need to sign in to do that
Don't have an account?
❤Code
image formula field in td html tag
Hi All,
I am trying to display image formula field in html td tag in custom visualforce page salesforce1. But it is not displaying. Can anybody help -
<apex:repeat value="{!contactList}" var="contact">
<tr>
<td align="left"><a href="/{!contact.Id}">{!contact.Name}</a></td>
<td>{!contact.RAG_Status__c}</td> /// formula field for image
</tr>
</apex:repeat>
But it is displaying as below in the column.
<img src="https://cs18.salesforce.com/resource/1427100618000/Amber_Flag" alt=" " border="0"/>
Regards
I am trying to display image formula field in html td tag in custom visualforce page salesforce1. But it is not displaying. Can anybody help -
<apex:repeat value="{!contactList}" var="contact">
<tr>
<td align="left"><a href="/{!contact.Id}">{!contact.Name}</a></td>
<td>{!contact.RAG_Status__c}</td> /// formula field for image
</tr>
</apex:repeat>
But it is displaying as below in the column.
<img src="https://cs18.salesforce.com/resource/1427100618000/Amber_Flag" alt=" " border="0"/>
Regards
All Answers
IMAGE("/resource/1427100618000/Amber_Flag", "")
check this and create aformula with return type as Text .
Instead of returning the Image tag you try by returning only url or path of the image and keep the image tag inside Td...which means insetad of getting everything from fromula feild you get only url which yoiu can use in Image tag..
Check with this and let me know if it works for you
Thanks
Sandeep
Try this:
See this link: https://www.salesforce.com/docs/developer/pages/Content/pages_security_tips_scontrols.htm
Hope that helps!