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
SF_Gh0stSF_Gh0st 

Output field question

Hi, I am working on the Account VisualForce page, and on that page I have a custom field that is from a different object. I am able to display that field from the different object but right now it is in a table. Is there a way to output the field value without a table, but just a single line of text? Below is what I have now, but only want the output to be a line of text, not in a table or anything else. The line below is already within an ouputPanel.Thanks.
 
<apex:pageBlockTable width="100%" cellpadding="1" cellspacing="1" 
                     value="{!contactList}" var="con" border="0" 
                     frame="none" id="table1">
    <apex:column>
        <apex:outputField value="{!con.CustomField__c}"
            rendered="{!con.CustomField__c != NULL}" 
        />
    </apex:column>
</apex:pageBlockTable>

 
Dushyant SonwarDushyant Sonwar

Try below code, it will come in single line..

<apex:repeat value="{!contactList}" var="con">
    
        {!con.CustomField__c}
         
</apex:repeat>