I am trying to display 2 fields value in same column one field datatype is formula with return type text to display the image and the other field is a picklist field. this is how it looks when i have separate column for each

enter image description here

When i use the following code to merge the column the formula field(graphical) displays the img url. something like this

<apex:column headerValue="Assigned To">

Current Output

  • Dis you try it without using html br tags? Check once without putting them. – Nitish Singhal Jun 1 '17 at 3:18

You can do it with apex:outputText and specify escape parameter as false.

<apex:outputText value="{!book.image_formula__c}" escape="false"/>

VF Page example

<apex:page standardController="Book__c" recordSetVar="books" >
        <apex:pageBlockTable value="{!books}" var="book" >
            <apex:column headerValue="Assign To">
                <apex:outputText value="{!book.Country__c}" escape="false"/><br></br>
                <apex:outputText value="{!book.image_formula__c}" escape="false"/>


enter image description here

  • @sfdcconsultant Please mark the answer as accepted if it answered your question, so other users can find it useful! – Saroj Bera Jun 1 '17 at 14:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.