Create a visualforce page using Section Header, PageBlockSection, PageBlockSectionItem and PageBlockButtons….

By | October 21, 2019

VF Page

<apex:page >
    <apex:sectionHeader title="Employee" subtitle="New Employee" help="/apex/page"/>
    <apex:form >
        <apex:pageblock title="Employee">
            <apex:pageBlockButtons location="Top">
                <apex:commandButton value="Save" />
                <apex:commandButton value="Cancel" />
            </apex:pageBlockButtons>
            <apex:pageBlockSection collapsible="false" title="Employee information">
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="Name"/><apex:inputText />
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="Active"/>
                    <apex:inputCheckbox /> 
                </apex:pageBlockSectionItem>
            </apex:pageBlockSection>
        </apex:pageblock>
    </apex:form>
</apex:page>

Output

Leave a Reply

Your email address will not be published. Required fields are marked *