I am developing an edit page for my company and i have a problem with the page buttons. Is it possible to put them in a random position not just the one offered with the location="top/bottom/both".

As you can see on the image i have buttons that point out to the right section in the pageblock but the buttons are only showing in the Sales section. I want them to be seen only in the confirm part at the end of the inserting wizard.

enter image description here


All you need to do is put the page block buttons in a div tag as follows:

<div style="margin-left: 123456px">             
<apex:pageBlockButtons location="bottom"  >
<apex:commandButton value="Save" action="{!Save}" />
<apex:commandButton value="Cancel" action="{!Cancel}" immediate="true"/>                                

This will help you place the save/cancel buttons left or right in the page block.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.