+ Start a Discussion

Creating a VF with Opportunity page layout.

Hi all,


How can I create a VF page which looks exactly the same with the Opportunity edit page? Because I need to do some customizing on that edit page. Any ideas will be welcome. Thank you.

Ron ReedRon Reed

You'll want to start with something that looks like this:


<apex:page standardController="Opportunity">
        <apex:pageBlock title="Edit Opportunity">
                <apex:commandButton value="Save" action="{!save}"/>
                <apex:inputField value="{!opportunity.name}"/>
                <apex:inputField value="{!opportunity.amount}"/>


Saurabh DhobleSaurabh Dhoble

Yup, that's the way to go. Another place you can refer to here