Visualforce page tag – apex:pageBlockButtons


apex:pageBlockButtons, this tag is used to define a set of buttons that are styled like standard Salesforce buttons. This tag must be a child component of on apex:pageBlock tag.


<apex:page standardController=”Account”>

    <apex:form >

        <apex:pageBlock title=”Account Details”>           

            <apex:pageBlockSection title=”My Content Section” columns=”2″>

                <apex:inputField value=”{!}”/>

                <apex:inputField value=”{!account.AccountNumber}”/>

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

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


            <apex:pageBlockButtons >

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





Result of the above visualforce page.


apex:pageBlockButtons attributes:

dir, id, lang, location, onclick, ondblclick, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, rendered, style, styleClass, title.

To know more about apex:pageBlockButtons, refer this URL

Thank you for visiting this tutorial website!! We will review your comment and getback to you shotly.