function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
chuckwalleychuckwalley 

iframe - headers and sidebars

Is there a way to remove sidebars and headers within an iframe? I have a customized Opportunity page and I want to see the Opportunity shares. I can do this with an iframe, however, I could do without the header and sidebar. 

 

Thanks

 

Best Answer chosen by Admin (Salesforce Developers) 
gaisergaiser

Yes.

Just add &isdtp=mn parameter to the url of the page which you embed in the iFrame.

 

ex:

https://cs14.salesforce.com/006c000000123456?isdtp=mn

 

 

All Answers

kerwintangkerwintang

I think you can remove it by setting this in the apex:page tag:

 

<apex:page showheader="false" sidebar="false">

 

Hope this helps!

gaisergaiser

Yes.

Just add &isdtp=mn parameter to the url of the page which you embed in the iFrame.

 

ex:

https://cs14.salesforce.com/006c000000123456?isdtp=mn

 

 

This was selected as the best answer
chuckwalleychuckwalley

Excellent! Many thanks. I owe you a beer.