{"id":2089,"date":"2011-05-03T17:30:51","date_gmt":"2011-05-03T12:00:51","guid":{"rendered":"http:\/\/JitendraZaa.com\/blog\/?p=2089"},"modified":"2011-05-03T17:30:51","modified_gmt":"2011-05-03T12:00:51","slug":"override-standard-links-with-visualforce-pages-in-salesforce","status":"publish","type":"post","link":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/override-standard-links-with-visualforce-pages-in-salesforce\/","title":{"rendered":"Override standard Links with VisualForce pages in Salesforce"},"content":{"rendered":"<p>overriding existing salesforce page with your own page is one of the advantages offered by salesforce.com. In this article i will demonstrate that how we can override existing Contact page with our custom contact page.<\/p>\n<p>Go to <strong>Set up | Develop | Pages<\/strong> and create new Visual force page with below code.<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\n&lt;apex:page standardController=&quot;Contact&quot; tabStyle=&quot;Lead&quot;&gt;\n&lt;apex:pageBlock title=&quot;My Contact Details&quot;&gt;\n&lt;p&gt;Hello {!contact.FirstName}&lt;\/p&gt;&lt;br&gt;\n&lt;i&gt;Developed by : &lt;b&gt;Jitendra Zaa &lt;\/b&gt;&lt;\/i&gt;&lt;\/br&gt; &lt;br&gt;\n&lt;i&gt;This is the customPage developed&lt;\/i&gt;&lt;\/br&gt;\n&lt;apex:form &gt;\n&lt;apex:inputField value=&quot;{!contact.addit__c}&quot;\/&gt;\n&lt;\/apex:form&gt;\n&lt;\/apex:pageBlock&gt;\n&lt;apex:detail relatedList=&quot;false&quot; \/&gt;\n&lt;\/apex:page&gt;\n<\/pre>\n<p>The above code will only display one textbox (Custom textbox field created by me).<!--more--><\/p>\n<p>Now go to <strong>Set Up | App Set Up | Contacts | Buttons And Links<\/strong><\/p>\n<p style=\"text-align: center;\">&nbsp;<\/p>\n<figure id=\"attachment_2092\" aria-describedby=\"caption-attachment-2092\" style=\"width: 431px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2011\/05\/Salesforce-Override-Buttons-and-Links.jpg?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-2092  \" title=\"Salesforce Override Buttons and Links\" src=\"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2011\/05\/Salesforce-Override-Buttons-and-Links.jpg?resize=431%2C177&#038;ssl=1\" alt=\"Salesforce Override Buttons and Links\" width=\"431\" height=\"177\" \/><\/a><figcaption id=\"caption-attachment-2092\" class=\"wp-caption-text\">Salesforce Override Buttons and Links<\/figcaption><\/figure>\n<p>Edit &#8220;View&#8221; Button and select your page as shown in below image.<\/p>\n<p style=\"text-align: center;\">&nbsp;<\/p>\n<figure id=\"attachment_2093\" aria-describedby=\"caption-attachment-2093\" style=\"width: 450px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2011\/05\/Select-Custom-Page-to-override-default-behavior-in-Salesforce.jpg?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-2093  \" title=\"Select Custom Page to override default behavior in Salesforce\" src=\"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2011\/05\/Select-Custom-Page-to-override-default-behavior-in-Salesforce.jpg?resize=450%2C243&#038;ssl=1\" alt=\"Select Custom Page to override default behavior in Salesforce\" width=\"450\" height=\"243\" \/><\/a><figcaption id=\"caption-attachment-2093\" class=\"wp-caption-text\">Select Custom Page to override default behavior in Salesforce<\/figcaption><\/figure>\n<p>When you will go to contact page, following output will be visible.<\/p>\n<p style=\"text-align: center;\">&nbsp;<\/p>\n<figure id=\"attachment_2094\" aria-describedby=\"caption-attachment-2094\" style=\"width: 446px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2011\/05\/Overriding-default-button-and-link-in-Salesforce.jpg?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-2094  \" title=\"Overriding default button and link in Salesforce\" src=\"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2011\/05\/Overriding-default-button-and-link-in-Salesforce.jpg?resize=446%2C228&#038;ssl=1\" alt=\"Overriding default button and link in Salesforce\" width=\"446\" height=\"228\" \/><\/a><figcaption id=\"caption-attachment-2094\" class=\"wp-caption-text\">Overriding default button and link in Salesforce<\/figcaption><\/figure>\n<p>As you can see, we have changed the default User interface of the Contact Page.<\/p>\n<p>For any suggestion please leave your valuable comments.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Demonstration of Overriding standard Links with VisualForce pages in Salesforce<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"jz_research_post":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[9],"tags":[331],"class_list":["post-2089","post","type-post","status-publish","format-standard","hentry","category-salesforce","tag-salesforce"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":6401,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/implementing-custom-apex-adapter-for-salesforce-connect\/","url_meta":{"origin":2089,"position":0},"title":"Implementing Custom Apex Adapter for Salesforce Connect","author":"Jitendra","date":"March 1, 2018","format":false,"excerpt":"Complete Source code and demo of implementing Custom Apex Adapter for Salesforce Connect","rel":"","context":"In &quot;Salesforce&quot;","block_context":{"text":"Salesforce","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/salesforce\/"},"img":{"alt_text":"Custom Apex Adapter for Salesforce Connect","src":"https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2018\/03\/Custom-Apex-Adapter-for-Salesforce-Connect.png?fit=1053%2C607&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2018\/03\/Custom-Apex-Adapter-for-Salesforce-Connect.png?fit=1053%2C607&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2018\/03\/Custom-Apex-Adapter-for-Salesforce-Connect.png?fit=1053%2C607&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2018\/03\/Custom-Apex-Adapter-for-Salesforce-Connect.png?fit=1053%2C607&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2018\/03\/Custom-Apex-Adapter-for-Salesforce-Connect.png?fit=1053%2C607&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":6836,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/framework-to-fix-governor-limit-of-100-jobs-in-flex-queue\/","url_meta":{"origin":2089,"position":1},"title":"Framework to fix &#8211; Governor Limit of 100 jobs in Flex Queue","author":"Jitendra","date":"April 25, 2019","format":false,"excerpt":"How to design an application in Salesforce to handle governor limit error of maximum 100 jobs in Flex Queue","rel":"","context":"In &quot;Salesforce&quot;","block_context":{"text":"Salesforce","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/salesforce\/"},"img":{"alt_text":"Salesforce Apex Flex Queue Governor Limit","src":"https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2019\/04\/Salesforce-Apex-Flex-Queue-Governor-Limit.png?fit=1200%2C539&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2019\/04\/Salesforce-Apex-Flex-Queue-Governor-Limit.png?fit=1200%2C539&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2019\/04\/Salesforce-Apex-Flex-Queue-Governor-Limit.png?fit=1200%2C539&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2019\/04\/Salesforce-Apex-Flex-Queue-Governor-Limit.png?fit=1200%2C539&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2019\/04\/Salesforce-Apex-Flex-Queue-Governor-Limit.png?fit=1200%2C539&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":2998,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/apex-based-sharing-in-salesforce\/","url_meta":{"origin":2089,"position":2},"title":"Apex based record sharing in Salesforce","author":"Jitendra","date":"July 27, 2012","format":false,"excerpt":"Working with Apex based sharing in Salesforce","rel":"","context":"In &quot;Apex&quot;","block_context":{"text":"Apex","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/salesforce\/apex\/"},"img":{"alt_text":"Salesforce Apex Sharing Reason","src":"https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2012\/07\/Salesforce-Apex-Sharing-Reason.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2012\/07\/Salesforce-Apex-Sharing-Reason.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2012\/07\/Salesforce-Apex-Sharing-Reason.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2012\/07\/Salesforce-Apex-Sharing-Reason.png?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2012\/07\/Salesforce-Apex-Sharing-Reason.png?resize=1050%2C600&ssl=1 3x"},"classes":[]},{"id":2501,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/very-useful-tips-and-tricks-of-the-apex-salesforce-interview-questions-part-4\/","url_meta":{"origin":2089,"position":3},"title":"Latest Salesforce Interview Questions &#8211; Part 4 &#8211; Related to Dynamic Apex","author":"Jitendra","date":"November 27, 2011","format":false,"excerpt":"Most Frequently Asked interview questions of Apex, Dynamic Apex, SOSL, Visualforce, SOQL in Salesforce.com SFDC","rel":"","context":"In &quot;Salesforce&quot;","block_context":{"text":"Salesforce","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/salesforce\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":4546,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/system-mode-or-god-mode-in-apex-gotchas\/","url_meta":{"origin":2089,"position":4},"title":"System mode or God mode in Apex &#8211; Gotchas","author":"Jitendra","date":"June 8, 2015","format":false,"excerpt":"Gotchas of System mode or God mode in Apex and its impact by using \"With sharing\" keyword in Salesforce","rel":"","context":"In &quot;Apex&quot;","block_context":{"text":"Apex","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/salesforce\/apex\/"},"img":{"alt_text":"Salesforce God Mode failing","src":"https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2015\/06\/Salesforce-God-Mode-failing.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2015\/06\/Salesforce-God-Mode-failing.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2015\/06\/Salesforce-God-Mode-failing.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":28,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/salesforce-interview-questions\/","url_meta":{"origin":2089,"position":5},"title":"Salesforce Interview Questions &#8211; Part 1","author":"Jitendra","date":"May 6, 2010","format":false,"excerpt":"Set of most often asked questions on the salesforce.com developement","rel":"","context":"In &quot;Salesforce&quot;","block_context":{"text":"Salesforce","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/salesforce\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/posts\/2089","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/comments?post=2089"}],"version-history":[{"count":0,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/posts\/2089\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/media?parent=2089"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/categories?post=2089"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/tags?post=2089"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}