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
ChikuChiku 

Display field in same order in VF page as like standard layout

I have one edit layout and the Detail page layout for one object ,edit layout is a VF page, and the other is a standard salesforce layout.suppose in detail layout two fields on the left  hand column,then click on edit and they are in a different location. manually to go evry time to vf page & changing the field location as per standar layout which very awkward, please suggest me with some solution for this.
Virendra ChouhanVirendra Chouhan
Hi Chiku,

just change the field location in standard detail layout.
can you send screenshot?

Regards
Virendra

Deepak Kumar ShyoranDeepak Kumar Shyoran
Use <apex:Pageblock > ,and <apex:pageBlockSection > component on vf page to show your field on VF page with proper alignment as shown on your detail page.

As both the component take 2 Item by default in addition to them can use <apex:pageblockSectionItem> also. These component will help to provide same look and feel as on your detail page.
AshwaniAshwani
Use <apex:detail> tag and enable inline edit.

Ex:

<apex:page standardController="Account">
   <apex:detail subject="{!account.ownerId}" relatedList="false" title="false" inlineEdit="true"/> 
</apex:page>