function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

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: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) 

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">