+ Start a Discussion
kfkaalkfkaal 

Styling of a VF edit page

We have build a special Account / Contact page with this code:

 

 

<apex:page standardController="Contact" extensions="combinedAccountExt" tabstyle="Account">
  
    <apex:form >
         <apex:pageBlock title="Single Account" mode="Edit">
              <apex:pageBlockButtons >
...
              </apex:pageBlockButtons> 
            <apex:pageBlockSection title="Contact">

 

 

I would expect that I would get the appearance of a Account edit page.
But: I get a page with the high bars for the sections with the title in it - like in view mode. 
I rather would like to see thin lines to on top of the section headers as in the standard edit mode.
What am I doing wrong?
 ....

 

 

Best Answer chosen by Admin (Salesforce Developers) 
bob_buzzardbob_buzzard

I'm not sure I 100% understand the question, as my view/edit experience seems to be the opposite of yours.

 

However, try setting the mode  to maindetail.  This gives me something akin to the latest UI:

 

<apex:pageBlock title="Single Account" mode="maindetail">