{"id":1213,"date":"2010-10-08T09:54:25","date_gmt":"2010-10-08T04:24:25","guid":{"rendered":"http:\/\/JitendraZaa.com\/blog\/?p=1213"},"modified":"2010-10-08T09:54:25","modified_gmt":"2010-10-08T04:24:25","slug":"step-by-step-salesforce-tutorial-creating-tab-and-validation-rule-3-of-n","status":"publish","type":"post","link":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/step-by-step-salesforce-tutorial-creating-tab-and-validation-rule-3-of-n\/","title":{"rendered":"Step by Step Salesforce Tutorial \u2013 Creating Tab and Validation Rule \u2013 3 of 6"},"content":{"rendered":"<div style=\"background-color: #f5e2ba; border: 1px solid #ccc; width: 100%; padding-top: 10px; margin-top: 10px; color: #140b5c;\">\n<ol>\n<li><a style=\"color: #140b5c !important;\" href=\"https:\/\/jitendrazaa.com\/blog\/webtech\/salesforce\/step-by-step-salesforce-tutorial-creating-custom-object-1-of-n\/\">Creating custom object <\/a><a style=\"color: #140b5c !important;\" href=\"https:\/\/jitendrazaa.com\/blog\/webtech\/salesforce\/step-by-step-salesforce-tutorial-creating-custom-object-1-of-n\/\"><\/a><\/li>\n<li> <a style=\"color: #140b5c !important;\" href=\"https:\/\/jitendrazaa.com\/blog\/webtech\/salesforce\/step-by-step-salesforce-tutorial-%E2%80%93-creating-fields-%E2%80%93-2-of-n\/\">Creating Fields<\/a><\/li>\n<li><a style=\"color: #140b5c !important;\" href=\"https:\/\/jitendrazaa.com\/blog\/webtech\/salesforce\/step-by-step-salesforce-tutorial-%E2%80%93-creating-fields-%E2%80%93-2-of-n\/\"><\/a><a style=\"color: #140b5c !important;\" href=\"https:\/\/jitendrazaa.com\/blog\/webtech\/salesforce\/step-by-step-salesforce-tutorial-%E2%80%93-creating-tab-and-validation-rule-%E2%80%93-3-of-n\/\">Creating Tab and Validation Rule<\/a><\/li>\n<li> <a style=\"color: #140b5c !important;\" href=\"https:\/\/jitendrazaa.com\/blog\/webtech\/salesforce\/step-by-step-salesforce-tutorial-%E2%80%93-creating-email-template-%E2%80%93-4-of-n\/\">Creating Email Template<\/a><\/li>\n<li><a style=\"color: #140b5c !important;\" href=\"https:\/\/jitendrazaa.com\/blog\/webtech\/salesforce\/step-by-step-salesforce-tutorial-%E2%80%93-creating-email-template-%E2%80%93-4-of-n\/\"><\/a><a style=\"color: #140b5c !important;\" href=\"https:\/\/jitendrazaa.com\/blog\/webtech\/salesforce\/step-by-step-salesforce-tutorial-%E2%80%93-creating-workflow-rule-%E2%80%93-5-of-n\/\">Creating Workflow rule<\/a><\/li>\n<li> <a style=\"color: #140b5c !important;\" href=\"https:\/\/jitendrazaa.com\/blog\/webtech\/salesforce\/step-by-step-salesforce-tutorial-%E2%80%93-creating-trigger-and-test-cases-%E2%80%93-6-of-6\/\">Creating Trigger and Test cases <\/a><a style=\"color: #140b5c !important;\" href=\"https:\/\/jitendrazaa.com\/blog\/webtech\/salesforce\/step-by-step-salesforce-tutorial-%E2%80%93-creating-trigger-and-test-cases-%E2%80%93-6-of-6\/\"><\/a><a style=\"color: #140b5c !important;\" href=\"https:\/\/jitendrazaa.com\/blog\/webtech\/salesforce\/step-by-step-salesforce-tutorial-%E2%80%93-creating-trigger-and-test-cases-%E2%80%93-6-of-6\/\"><\/a><\/li>\n<\/ol>\n<\/div>\n<p>In this tutorial, we are going to create Tab and Validation rules for Automated\u00a0tuition class registration.<\/p>\n<p>To create Tab go to <strong>Setup -&gt; Create -&gt; Tabs -&gt; New Custom object Tabs<\/strong>, and there select object Student.<\/p>\n<p>After creation of tab, we can also customize \/ edit the page layout.<\/p>\n<figure id=\"attachment_1217\" aria-describedby=\"caption-attachment-1217\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2010\/10\/Edit-Page-Layout-Salesforce.jpg?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1217\" title=\"Edit Page Layout Salesforce\" src=\"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2010\/10\/Edit-Page-Layout-Salesforce-300x105.jpg?resize=300%2C105&#038;ssl=1\" alt=\"Edit Page Layout Salesforce\" width=\"300\" height=\"105\" \/><\/a><figcaption id=\"caption-attachment-1217\" class=\"wp-caption-text\">Edit Page Layout Salesforce<\/figcaption><\/figure>\n<p>As you can see, On Custom tab, Go to <strong>Page Layouts <\/strong>section and click on <strong>Edit <\/strong>button.<\/p>\n<figure id=\"attachment_1218\" aria-describedby=\"caption-attachment-1218\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2010\/10\/Set-Page-layout-Salesforce.jpg?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1218\" title=\"Set Page layout Salesforce\" src=\"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2010\/10\/Set-Page-layout-Salesforce-300x101.jpg?resize=300%2C101&#038;ssl=1\" alt=\"Set Page layout Salesforce\" width=\"300\" height=\"101\" \/><\/a><figcaption id=\"caption-attachment-1218\" class=\"wp-caption-text\">Set Page layout Salesforce<\/figcaption><\/figure>\n<p>Final look of page is shown in above screen shot.<\/p>\n<p><strong>Creating Validation rule in salesforce:<\/strong><\/p>\n<p>Now lets have a look in <strong>Validation <\/strong>feature of salesforce.<\/p>\n<p><!--more--> Validation rules verify that the data a user enters in a record meets the standards you specify before the user can save the record. A validation rule can contain a formula or expression that evaluates the data in one or more fields and returns a value of &#8220;<strong>True<\/strong>&#8220;\u009d or &#8220;<strong>False<\/strong>.&#8221;\u009d Validation rules also include an error message to display to the user when the rule returns a value of &#8220;True&#8221;\u009d due to an invalid value.<br \/>\nTo begin using validation rules, click<strong> Setup | Customize<\/strong>, select the appropriate activity, standard object, or users link from the menu, and click Validation Rules. For custom objects, click <strong>Setup | Create | Objects<\/strong> and select the custom object. Validation rules are listed in the Validation Rules related list.<\/p>\n<p><strong><span style=\"text-decoration: underline;\">Note :<\/span><\/strong> Validation rules apply to all new and updated records for an object, even if the fields referenced in the validation rule are not included in a page layout or an API call. If your organization has multiple page layouts for the object on which you create a validation rule, verify that the validation rule functions as intended on each layout. If your organization has any integrations that use this object, verify that the validation rule functions as intended for each integration.<\/p>\n<p>In our scenario, lets say the installments cannot be less than 500.<\/p>\n<figure id=\"attachment_1219\" aria-describedby=\"caption-attachment-1219\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2010\/10\/Creating-Validation-rule-salesforce.jpg?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1219\" title=\"Creating Validation rule salesforce\" src=\"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2010\/10\/Creating-Validation-rule-salesforce-300x233.jpg?resize=300%2C233&#038;ssl=1\" alt=\"Creating Validation rule salesforce\" width=\"300\" height=\"233\" \/><\/a><figcaption id=\"caption-attachment-1219\" class=\"wp-caption-text\">Creating Validation rule in salesforce<\/figcaption><\/figure>\n<p>As you can see in above screen shot, we have created the Validation rule. if Validation rule is not\u00a0satisfied then we can also display the custom message.<\/p>\n<p>The demo of above validation rule is demonstrated in below screen shot.<\/p>\n<figure id=\"attachment_1221\" aria-describedby=\"caption-attachment-1221\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2010\/10\/Validation-rule-not-satisfied-salesforce.jpg?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1221\" title=\"Validation rule not satisfied salesforce\" src=\"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2010\/10\/Validation-rule-not-satisfied-salesforce-300x121.jpg?resize=300%2C121&#038;ssl=1\" alt=\"Validation rule not satisfied salesforce\" width=\"300\" height=\"121\" \/><\/a><figcaption id=\"caption-attachment-1221\" class=\"wp-caption-text\">Validation rule not satisfied salesforce<\/figcaption><\/figure>\n<p>The validation message can be shown at header or it can be shown below fields also.<\/p>\n<p>In next tutorial, we will see how to create the <strong>welcome mail template for the student<\/strong>, if he joins any course.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Step by Step Salesforce Tutorial \u2013 Creating Tab and Validation Rule \u2013 3 of n<\/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_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":"","jetpack_post_was_ever_published":false},"categories":[9],"tags":[331],"class_list":["post-1213","post","type-post","status-publish","format-standard","hentry","category-salesforce","tag-salesforce"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":1200,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/step-by-step-salesforce-tutorial-creating-fields-2-of-n\/","url_meta":{"origin":1213,"position":0},"title":"Step by Step Salesforce Tutorial \u2013 Creating fields \u2013 2 of 6","author":"Jitendra","date":"October 7, 2010","format":false,"excerpt":"Step by Step Salesforce Tutorial \u2013 Creating fields \u2013 2 of n series tutorial","rel":"","context":"In &quot;Salesforce&quot;","block_context":{"text":"Salesforce","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/salesforce\/"},"img":{"alt_text":"Create Custom object though Salesforce","src":"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2010\/10\/Create-Custom-object-though-Salesforce-300x238.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":1192,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/step-by-step-salesforce-tutorial-creating-custom-object-1-of-n\/","url_meta":{"origin":1213,"position":1},"title":"Step by Step Salesforce Tutorial \u2013 Creating custom object \u2013 1 of 6","author":"Jitendra","date":"October 6, 2010","format":false,"excerpt":"Step by Step Salesforce Tutorial - Creating custom object - 1 of n tutorial series","rel":"","context":"In &quot;Salesforce&quot;","block_context":{"text":"Salesforce","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/salesforce\/"},"img":{"alt_text":"Create Custom object Eclipse Salesforce","src":"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2010\/10\/Create-Custom-object-Eclipse-Salesforce-300x290.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":1233,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/step-by-step-salesforce-tutorial-creating-workflow-rule-5-of-n\/","url_meta":{"origin":1213,"position":2},"title":"Step by Step Salesforce Tutorial \u2013 Creating Workflow rule \u2013 5 of 6","author":"Jitendra","date":"October 10, 2010","format":false,"excerpt":"Step by Step Salesforce Tutorial \u2013 Creating Workflow rule \u2013 5 of n","rel":"","context":"In &quot;Salesforce&quot;","block_context":{"text":"Salesforce","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/salesforce\/"},"img":{"alt_text":"Salesforce creating Workflow rule step 1","src":"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2010\/10\/Salesforce-creating-Workflow-rule-step-1.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":1224,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/step-by-step-salesforce-tutorial-creating-email-template-4-of-n\/","url_meta":{"origin":1213,"position":3},"title":"Step by Step Salesforce Tutorial \u2013 Creating Email Template \u2013 4 of 6","author":"Jitendra","date":"October 9, 2010","format":false,"excerpt":"Step by Step Salesforce Tutorial \u2013 Creating Email Template \u2013 4 of n","rel":"","context":"In &quot;Salesforce&quot;","block_context":{"text":"Salesforce","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/salesforce\/"},"img":{"alt_text":"Create Email Template in Salesforce","src":"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2010\/10\/Create-Email-Template-in-Salesforce.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":1241,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/step-by-step-salesforce-tutorial-creating-trigger-and-test-cases-6-of-6\/","url_meta":{"origin":1213,"position":4},"title":"Step by Step Salesforce Tutorial \u2013 Creating Trigger and Test cases \u2013 6 of 6","author":"Jitendra","date":"October 11, 2010","format":false,"excerpt":"Step by Step Salesforce Tutorial \u2013 Creating Trigger and test cases \u2013 6 of 6 tutorials series","rel":"","context":"In &quot;Salesforce&quot;","block_context":{"text":"Salesforce","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/salesforce\/"},"img":{"alt_text":"Creating Trigger in Salesforce using force.com IDE","src":"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2010\/10\/Creating-Trigger-in-Salesforce-using-force.com-IDE.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":3814,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/introduction-to-flexipage-in-salesforce1-and-deploying-it-using-workbench\/","url_meta":{"origin":1213,"position":5},"title":"Introduction to Flexible page aka Lightning Page with example","author":"Jitendra","date":"April 12, 2014","format":false,"excerpt":"Display Visualforce page only in Salesforce1 mobile application and not in desktop version","rel":"","context":"In &quot;Salesforce&quot;","block_context":{"text":"Salesforce","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/salesforce\/"},"img":{"alt_text":"Access Salesforce1 from Browser","src":"https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2014\/04\/Access-Salesforce1-from-Browser.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2014\/04\/Access-Salesforce1-from-Browser.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2014\/04\/Access-Salesforce1-from-Browser.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/posts\/1213","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=1213"}],"version-history":[{"count":0,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/posts\/1213\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/media?parent=1213"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/categories?post=1213"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/tags?post=1213"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}