+ Start a Discussion
The KnightThe Knight 

Is there a way to show the standard edit page layout in VF

Like apex:detail, apex:listViews, is there a way to open a standard edit page layout in the visualforce page. we are planning to use satndar layouts without the standard header and with little customization. Any help would be appreciated.

 

Thanks in advance

Joseph

prageethprageeth

Hello

You can do as below.

You need not to have controller methods. VisualForce has a default edit() method.

Note :- However in order to use this you should have an valid Opportunity Id parameter in your URL.

 

<apex:page standardController="Opportunity">

<apex:form>

<apex:commandButton value="Edit" action="{!edit}"/>

</apex:form>

</apex:page>

 

Rajesh ShahRajesh Shah

Hi,

 

As of now, there is no way to dynamically pull in edit page for a record just like we can do for detail page. You will have to write the code for each field.

 

Please do vote for the idea to include component for dynamically pulling the edit page.

 

 Link