+ Start a Discussion
Nagaraju Mogili 7Nagaraju Mogili 7 

how can we separated the fields in pageblock section, I want to display the fieldnames (firstname,lastname,phone) in a row and the field values should be under the field names

<apex:page controller="NewController_cntrlr" sidebar="false" id="thepage" ShowHeader="false">
  <apex:form >
    <apex:pageBlock id="Thepage" title="Account Details">
       <apex:pageBlockSection collapsible="true">
          <apex:inputField value="{!acc.name}"/>
          <apex:inputField value="{!acc.rating}"/>
          <apex:inputField value="{!acc.AnnualRevenue}"/>
          <apex:inputField value="{!acc.Fax}"/>
          <apex:inputField value="{!acc.Industry}"/>
           <apex:pageBlockSection Title="Contact Details" >
              <apex:inputField label="Firstname" value="{!con.firstname}"/> 
              <apex:inputField label="Lastname" value="{!con.lastname}"/>
              <apex:inputField label="phone" value="{!con.phone}"/>


User-added image
Saurabh Sood 8Saurabh Sood 8
Hii @Nagaraju, It's better to use table instead of page block section and remaining explanation is blow 
Nagaraju Mogili 7Nagaraju Mogili 7
Thanks Saurabh..... for your reply..
But my requirement is to display the fields in pageblock sections only.. could you please suggest me how to separate the fields