<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Hiding Custom Buttons on a VisualForce Page</title>
	<atom:link href="http://www.force2b.net/index.php/2009/10/hiding-custom-buttons-on-a-visualforce-page/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.force2b.net/index.php/2009/10/hiding-custom-buttons-on-a-visualforce-page/</link>
	<description></description>
	<lastBuildDate>Mon, 09 Jan 2012 15:41:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: mgsmith</title>
		<link>http://www.force2b.net/index.php/2009/10/hiding-custom-buttons-on-a-visualforce-page/comment-page-1/#comment-17790</link>
		<dc:creator>mgsmith</dc:creator>
		<pubDate>Thu, 15 Dec 2011 13:57:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.sfcnmore.com/?p=261#comment-17790</guid>
		<description>Jesica,

Adding a VisualForce page to a page layout is done on the Page Layout editor, however it likely won&#039;t work now. VisualForce pages load from a different domain than the standard page layout. For example, the URL for a standard layout might be something like https://na1.salesforce.com/001W0000001xZkK. An embedded visualforce page on that page layout might come from https://c.na1.visual.force.com. Browser security will prevent javascript on the visualforce page at https://c.na1.visual.force.com from modifying any of the page elements on the parent page at https://na1.salesforce.com. 

I know it&#039;s a bit on the technical side, but basically you can&#039;t hide/modify buttons on a standard page layout this way. 

That said, it can be done if you override the VIEW for your object with a VisualForce page and use the  tag to display the standard page layout within the VF page. In that method, all of the content is on the same domain and you are able to use JavaScript to modify any page element, even on the standard page.

Best Regards,

Mike</description>
		<content:encoded><![CDATA[<p>Jesica,</p>
<p>Adding a VisualForce page to a page layout is done on the Page Layout editor, however it likely won&#8217;t work now. VisualForce pages load from a different domain than the standard page layout. For example, the URL for a standard layout might be something like <a href="https://na1.salesforce.com/001W0000001xZkK" rel="nofollow">https://na1.salesforce.com/001W0000001xZkK</a>. An embedded visualforce page on that page layout might come from <a href="https://c.na1.visual.force.com" rel="nofollow">https://c.na1.visual.force.com</a>. Browser security will prevent javascript on the visualforce page at <a href="https://c.na1.visual.force.com" rel="nofollow">https://c.na1.visual.force.com</a> from modifying any of the page elements on the parent page at <a href="https://na1.salesforce.com" rel="nofollow">https://na1.salesforce.com</a>. </p>
<p>I know it&#8217;s a bit on the technical side, but basically you can&#8217;t hide/modify buttons on a standard page layout this way. </p>
<p>That said, it can be done if you override the VIEW for your object with a VisualForce page and use the  tag to display the standard page layout within the VF page. In that method, all of the content is on the same domain and you are able to use JavaScript to modify any page element, even on the standard page.</p>
<p>Best Regards,</p>
<p>Mike</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jesica</title>
		<link>http://www.force2b.net/index.php/2009/10/hiding-custom-buttons-on-a-visualforce-page/comment-page-1/#comment-17477</link>
		<dc:creator>Jesica</dc:creator>
		<pubDate>Wed, 07 Dec 2011 18:48:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.sfcnmore.com/?p=261#comment-17477</guid>
		<description>Hi, I&#039;m trying to include a custom button and hiding/displaying It according to an status field value in Cases Tab.
I&#039;m not sure where and how I can include the VisualForce page in order It to be loaded during Cases Tab loading time.
Any hints on how making that work?</description>
		<content:encoded><![CDATA[<p>Hi, I&#8217;m trying to include a custom button and hiding/displaying It according to an status field value in Cases Tab.<br />
I&#8217;m not sure where and how I can include the VisualForce page in order It to be loaded during Cases Tab loading time.<br />
Any hints on how making that work?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guy</title>
		<link>http://www.force2b.net/index.php/2009/10/hiding-custom-buttons-on-a-visualforce-page/comment-page-1/#comment-14953</link>
		<dc:creator>Guy</dc:creator>
		<pubDate>Mon, 03 Oct 2011 09:05:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.sfcnmore.com/?p=261#comment-14953</guid>
		<description>so simple.. in order to re-enable inline editing I just had to add inlineEditing=&quot;true&quot; to the apex:detail element..</description>
		<content:encoded><![CDATA[<p>so simple.. in order to re-enable inline editing I just had to add inlineEditing=&#8221;true&#8221; to the apex:detail element..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guy</title>
		<link>http://www.force2b.net/index.php/2009/10/hiding-custom-buttons-on-a-visualforce-page/comment-page-1/#comment-14844</link>
		<dc:creator>Guy</dc:creator>
		<pubDate>Thu, 29 Sep 2011 12:01:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.sfcnmore.com/?p=261#comment-14844</guid>
		<description>Too bad my inline editing does no longer function now.. Any solution for that?</description>
		<content:encoded><![CDATA[<p>Too bad my inline editing does no longer function now.. Any solution for that?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anutosh</title>
		<link>http://www.force2b.net/index.php/2009/10/hiding-custom-buttons-on-a-visualforce-page/comment-page-1/#comment-14810</link>
		<dc:creator>Anutosh</dc:creator>
		<pubDate>Wed, 28 Sep 2011 11:40:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.sfcnmore.com/?p=261#comment-14810</guid>
		<description>Thanks for the post. Helped me a lot.</description>
		<content:encoded><![CDATA[<p>Thanks for the post. Helped me a lot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guy</title>
		<link>http://www.force2b.net/index.php/2009/10/hiding-custom-buttons-on-a-visualforce-page/comment-page-1/#comment-14752</link>
		<dc:creator>Guy</dc:creator>
		<pubDate>Mon, 26 Sep 2011 16:26:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.sfcnmore.com/?p=261#comment-14752</guid>
		<description>Hi Mike,
out of the different solutions available on the net, this is in my opinion the best and cleanest. Works like a charm.
Thanks for sharing!
Guy</description>
		<content:encoded><![CDATA[<p>Hi Mike,<br />
out of the different solutions available on the net, this is in my opinion the best and cleanest. Works like a charm.<br />
Thanks for sharing!<br />
Guy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mgsmith</title>
		<link>http://www.force2b.net/index.php/2009/10/hiding-custom-buttons-on-a-visualforce-page/comment-page-1/#comment-8088</link>
		<dc:creator>mgsmith</dc:creator>
		<pubDate>Wed, 03 Mar 2010 13:22:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.sfcnmore.com/?p=261#comment-8088</guid>
		<description>AC,

There is a screen capture of the custom button settings at the top of the post. Feel free to eMail me directly if you need help getting this working in SalesForce.

Mike</description>
		<content:encoded><![CDATA[<p>AC,</p>
<p>There is a screen capture of the custom button settings at the top of the post. Feel free to eMail me directly if you need help getting this working in SalesForce.</p>
<p>Mike</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AC</title>
		<link>http://www.force2b.net/index.php/2009/10/hiding-custom-buttons-on-a-visualforce-page/comment-page-1/#comment-8081</link>
		<dc:creator>AC</dc:creator>
		<pubDate>Mon, 01 Mar 2010 17:34:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.sfcnmore.com/?p=261#comment-8081</guid>
		<description>Thanks for the blog entry.  I&#039;m new to Salesforce and I&#039;m trying to accomplish this.  Is it possible to include the full listing for the Custom Button?  I&#039;m getting a &quot;button is not defined&quot; message in my attempts to recreate this.  Thanks!</description>
		<content:encoded><![CDATA[<p>Thanks for the blog entry.  I&#8217;m new to Salesforce and I&#8217;m trying to accomplish this.  Is it possible to include the full listing for the Custom Button?  I&#8217;m getting a &#8220;button is not defined&#8221; message in my attempts to recreate this.  Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kohnejo</title>
		<link>http://www.force2b.net/index.php/2009/10/hiding-custom-buttons-on-a-visualforce-page/comment-page-1/#comment-7069</link>
		<dc:creator>Kohnejo</dc:creator>
		<pubDate>Thu, 12 Nov 2009 11:51:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.sfcnmore.com/?p=261#comment-7069</guid>
		<description>And the reason of it is the &quot;type=&#039;hidden&#039;&quot;. Without this works fine if u dont want them to dissapear, just dont be enabled.

In my case is fine. Thanks!</description>
		<content:encoded><![CDATA[<p>And the reason of it is the &#8220;type=&#8217;hidden&#8217;&#8221;. Without this works fine if u dont want them to dissapear, just dont be enabled.</p>
<p>In my case is fine. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kohnejo</title>
		<link>http://www.force2b.net/index.php/2009/10/hiding-custom-buttons-on-a-visualforce-page/comment-page-1/#comment-7068</link>
		<dc:creator>Kohnejo</dc:creator>
		<pubDate>Thu, 12 Nov 2009 11:48:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.sfcnmore.com/?p=261#comment-7068</guid>
		<description>It doesn&#039;t work on IE.</description>
		<content:encoded><![CDATA[<p>It doesn&#8217;t work on IE.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

