Print this page

Embed Visualforce page in a page layout

Knowledge Article Number 000005105
Description

To embed a Visualforce page into page layout, the Visualforce page should be using the standard controller tag referencing the same entity that will be used in the page layout . You can use or add this Visualforce page by modifying the page layout.

Resolution

Visualforce page using the Standard Opportunity Controller

 

<apex:page standardController="Opportunity" tabStyle="Opportunity">
    <apex:pageBlock>
        <apex:pageBlockSection title="Opportunity Information">
            <apex:outputField value="{!opportunity.name}"/>
            <apex:outputField value="{!opportunity.amount}"/>
            <apex:outputField value="{!opportunity.closeDate}"/>
        </apex:pageBlockSection>
    </apex:pageBlock>
</apex:page>
 

After this, this page should show in the Page Layout editor and can be embedded on a page layout for Opportunity.





promote demote