You need to sign in to do that
Don't have an account?

how to remove the extra headers in a visual force page?
This is my detail page and when i click on skip to milestone it will open a visual force page which looks like below
How can i remove the extra portions like setup in the head part?
the button code for skip to milestone is
{!REQUIRESCRIPT("/xdomain/xdomain.js")}
{!REQUIRESCRIPT("/soap/ajax/39.0/connection.js")}
{!REQUIRESCRIPT("/soap/ajax/39.0/apex.js")}
{!REQUIRESCRIPT("/support/console/39.0/integration.js")}
var status='{!Program_Member_MVN__c.Status_MVN__c}';
var PmId='{!JSENCODE(Program_Member_MVN__c.Id)}';
var url;
if (sforce.console.isInConsole()) {
if(status == 'On Therapy')
{
url = "/apex/Milestone_skip?id="+PmId;
window.open(url,'_blank','toolbar=0,location=0,menubar=0');
}
else
{
alert("Patient must be ‘On-Therapy’ before skipping to a milestone");
}
}
var showTabId = function showTabId(thisVal) {
sforce.console.refreshPrimaryTabById(thisVal.id, true, '');
};
if (sforce.console != null && sforce.console.isInConsole()) {
setTimeout(function(){
sforce.console.getFocusedPrimaryTabId(showTabId);
},9500);
}
i am just referring the visual force page link in the button how can modify it show only my visual force part?
All Answers
Go to your VF page Milestone_skip & add change in controller tag <apex:page controller="" showHeader="false" sidebar="false">
Hope it will help you.
Please, mark it as answered if it helps you out.