You need to sign in to do that
Don't have an account?
Nagaraju 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>
<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}"/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>.
====================================================
=======================================================
<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>
<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}"/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>.
====================================================
=======================================================
https://www.lightningdesignsystem.com/components/data-tables/
But my requirement is to display the fields in pageblock sections only.. could you please suggest me how to separate the fields