Play Games

Search This Blog

Tuesday, April 12, 2016

How to embed visual force page in page layout?

Step 1: Create a visual force Page as required using standard controller.If you don't use standard controller We cannot embed this vf page in page layout.
For example if we want to include vf page in Lead pagelayout or lead detail page use standardcontroller ="Lead" as shown in example below.

<apex:page standardController="Lead">
    This Visualforce Page is Embeded in Lead Detail Page
</apex:page>

Step 2: Go to Edit Layout of Lead record as shown in the image below.

Step 3: Scroll the scrollbar in the left side of panel and click on Visualforce pages.You will find all visualforce pages which can be included in layout.


Step 4: Drag the required visualforce page to any section where we need to embed vf page.

Step 5: If you want to adjust height/width of this vf page,click on wrench symbol at the top right of this vf page in layout as shown in the image below.

step 6: Save the layout. That's it.Now the vf page is embeded in layout.


No comments:

Post a Comment