Split into two Columns (Simple Visual Force Page using Standard Controller)

 

Split into two Columns (Simple Visual Force Page using Standard Controller) –

 

<apex:page standardController="Account">

    <apex:form >

        <apex:pageBlock title="My Details" mode="edit">

            <apex:pageBlockButtons >

                <apex:commandButton action="{!save}" value="Save/Submit"/>

            </apex:pageBlockButtons>

            <apex:pageBlockSection title="My Details Section" columns="2">

                <apex:inputField value="{!account.name}"/>

                <apex:inputField value="{!account.site}"/>

                <apex:inputField value="{!account.type}"/>

                <apex:inputField value="{!account.accountNumber}"/>

            </apex:pageBlockSection>

        </apex:pageBlock>

    </apex:form>

</apex:page>

 

 

 

Output :



 

 

 

 

Comments