Before Spring 15 , my dashboard was getting embedded properly in salesforce user homepage. But, now i am getting a page that opens up into the dashboard page and is not a part of the home page any more ???? Is there some new change with respect to iframe.

Please advise urgently.

I have the following visualforce page:

<apex:page sidebar="true" showHeader="true">
<!--Hello {!$User.FirstName} {!$User.LastName} {!$UserRole.Name}-->
<iframe id="myFrame" height="100%" width="100%" frameborder = "no" scrolling = "no"></iframe>
        <script type = "text/javascript">
            var sw = "{!$UserRole.Name}"
            var iframe = document.getElementById('myFrame'); 

            if (condition1) {
                iframe.src = "/01Z40000000MXOu?isdtp=mn";

            else if (condition2") {
                iframe.src = "/01Z40000000MXQR?isdtp=mn"; 

            else if (condition3) {
                iframe.src = "/01Z40000000MXOu?isdtp=mn"; 

            else if (condition4) {
                iframe.src = "/01Z40000000MXOp?isdtp=mn"; 

            else if (condition5) {
                iframe.src = "/01Z40000000MXOk?isdtp=mn"; 

  • Is that in a HTML Area home page component? If so you may need to use a Visualforce Area component instead. See here
    – BarCotter
    Commented Feb 16, 2015 at 14:50
  • I am already using visualforce component but iframe is not working in salesforce after spring 15 update.
    – Siddharth
    Commented Feb 16, 2015 at 15:20
  • I need a way to replace iframe and open my dashboard in my homepage
    – Siddharth
    Commented Feb 16, 2015 at 15:21

1 Answer 1


Even i was facing the same issue i got below solution:

location.href="/01ZZ00000004WuX?isdtp=vw" frameborder="0" height="450" width="350";

use location href in place of iframe.

if any one can help how i can place multiple dashboards on home page as

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .