Activity Forums Salesforce® Discussions How can I show a Visualforce page in the sidebar?

  • Nitish

    Member
    April 30, 2016 at 9:12 am

    Hi Shubham

    Placing a visualforce page on sidebar is really simple.
    1) Create a visualforce page.
    2) Create a custom HTML homepage component. using Below Path.
    Path: Setup ->App Setup -> Customize -> Home -> Home Page Components -> HTML AREA -> Narrow (Left Column),
    3) Click the Show HTML Check box and Place the following code in the HTML area.

    add this

    <iframe src="/apex/&#91;VF PAGE NAME&#93;" height="100" width="100%" frameborder="0"></iframe>

    replace [VF PAGE NAME] your custom page name.

    4) Finally, Place it on the left side of home page layout.

  • Ajit

    Member
    April 30, 2016 at 9:15 am

    Hi Shubham ,

    1. Create a custom home page component
    2. Add the componeent to the home page layout and make sure developer mode is disabled for the current user else the side bar will show simply the code of the page rather then showing the page content.
  • Parul

    Member
    September 12, 2018 at 4:38 pm

    Hi Shubham,

    As Ajit and Nitish replied we can add page layout components and all. But if you are using Mozilla firefox, then you have to tell Firefox to accept third party cookies, because most of the page comes from the salesforce.com domain, and the iframe containing the VF page comes from force.com. Failing to allow third party cookies messes with the redirection.

    Thanks.!!

  • shariq

    Member
    September 14, 2018 at 2:08 am

    Hi,

    You can achieve this by creating custom home page component and assign your vf page to it.

    Hope this helps.

Log In to reply.

Popular Salesforce Blogs