0

How to move Button 'Create Referral' to center. I don't want that button on new Line. I want to show both Ok and Create Referral on same line, Ok on left side and 'Create Referral' to center

<apex:commandButton value="Ok" oncomplete="javascript:CloseAndRefresh()" />

<apex:commandButton value="Create Referral" action="{!CreateRefferal}"/> 

How to do that ?

2
  • Your question is unclear, possibly posting an image would help members to understand. Secondly from where you are trying to access Create Referral button? Commented Jul 10, 2018 at 8:59
  • apex:commandButton value="Ok" oncomplete="javascript:CloseAndRefresh()" apex:commandButton value="Create Referral" action="{!CreateRefferal}"
    – user46824
    Commented Jul 10, 2018 at 9:06

1 Answer 1

0

You can wrap those buttons inside apex:pageBlockButtons as follows

<apex:pageBlock title="My Content" mode="edit">
    <apex:pageBlockButtons>
        <apex:commandButton value="Ok" oncomplete="javascript:CloseAndRefresh()" />

        <apex:commandButton value="Create Referral" action="{!CreateRefferal}"/> 
    </apex:pageBlockButtons>
</apex:pageBlock>

For more information, refer apex:pageBlockButtons

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .