{"id":2990,"date":"2012-07-26T00:44:55","date_gmt":"2012-07-25T19:14:55","guid":{"rendered":"http:\/\/JitendraZaa.com\/blog\/?p=2990"},"modified":"2012-07-26T00:44:55","modified_gmt":"2012-07-25T19:14:55","slug":"create-web-to-lead-form-in-salesforce","status":"publish","type":"post","link":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/create-web-to-lead-form-in-salesforce\/","title":{"rendered":"Create Web to Lead form in Salesforce"},"content":{"rendered":"<p style=\"text-align: justify;\">I decided to write this article because of lots of comments received from the newbies in Salesforce community. We know that the Lead is the pillar object in CRM from where everything is started. And every CRM related software tries their best to offer best and reusable feature to work with lead and same thing is with Salesforce also. In Salesforce you can create a lead by traditional way like logging into application and then performing other steps.<\/p>\n<figure id=\"attachment_2992\" aria-describedby=\"caption-attachment-2992\" style=\"width: 435px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2012\/07\/Web-to-Lead-in-Salesforce.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-2992\" title=\"Web-to-Lead in Salesforce\" src=\"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2012\/07\/Web-to-Lead-in-Salesforce.png?resize=435%2C131&#038;ssl=1\" alt=\"Web-to-Lead in Salesforce\" width=\"435\" height=\"131\" \/><\/a><figcaption id=\"caption-attachment-2992\" class=\"wp-caption-text\">Web-to-Lead in Salesforce<\/figcaption><\/figure>\n<p style=\"text-align: justify;\">Salesforce also have lots of cool feature to make the life of marketing user easy and one of them is &#8220;Web to Lead&#8221;\u009d. It is possible for any organization that the lead (Potential customer) is coming from the site hosted for some product. So in that case we can host a web form (Simple HTML) on that website and whenever the form is filled its record automatically gets created in Salesforce.<!--more--><\/p>\n<p>So let&#8217;s start walkthrough for creation of &#8220;Web to Lead&#8221;\u009d form.<br \/>\nNavigate to <strong>&#8220;Settings | App Setup | Customize | Leads | Web-to-Lead&#8221;\u009d<\/strong>.<br \/>\nNow enable <strong>&#8220;Web to Lead&#8221;\u009d<\/strong> setting and assign <strong>&#8220;Default Lead Creator&#8221;\u009d<\/strong>, This user will be used to create the lead from Web to lead form.<br \/>\nWe can also set the <strong>&#8220;Default Response Template&#8221;\u009d<\/strong>, in case we want to auto reply the submitter that his application is submitted successfully.<\/p>\n<figure id=\"attachment_2994\" aria-describedby=\"caption-attachment-2994\" style=\"width: 529px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2012\/07\/Web-to-lead-Setting-in-Salesforce.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-2994\" title=\"Web to lead Setting in Salesforce\" src=\"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2012\/07\/Web-to-lead-Setting-in-Salesforce.png?resize=529%2C139&#038;ssl=1\" alt=\"Web to lead Setting in Salesforce\" width=\"529\" height=\"139\" \/><\/a><figcaption id=\"caption-attachment-2994\" class=\"wp-caption-text\">Web to lead Setting in Salesforce<\/figcaption><\/figure>\n<p>Then click on button <strong>&#8220;Create Web-to-Lead Form&#8221;\u009d<\/strong>.<\/p>\n<figure id=\"attachment_2993\" aria-describedby=\"caption-attachment-2993\" style=\"width: 593px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2012\/07\/Generate-Web-to-Lead-Wizard.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\" wp-image-2993 \" title=\"Generate Web-to-Lead Wizard\" src=\"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2012\/07\/Generate-Web-to-Lead-Wizard.png?resize=593%2C348&#038;ssl=1\" alt=\"Generate Web-to-Lead Wizard\" width=\"593\" height=\"348\" \/><\/a><figcaption id=\"caption-attachment-2993\" class=\"wp-caption-text\">Generate Web-to-Lead Wizard<\/figcaption><\/figure>\n<p style=\"text-align: justify;\">After click on button, above wizard will open.<br \/>\nHere we can decide that which fields should be present in the form and in which sequence.<br \/>\nWe can select the return URL (In most of the cases it would be the URL of site from which the form is invoked) also.<br \/>\nNow click on &#8220;Generate&#8221;\u009d button. The HTML code will be generated as per below image.<\/p>\n<figure id=\"attachment_2991\" aria-describedby=\"caption-attachment-2991\" style=\"width: 593px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2012\/07\/Web-to-Lead-generated-code.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\" wp-image-2991  \" title=\"Web-to-Lead generated code\" src=\"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2012\/07\/Web-to-Lead-generated-code.png?resize=593%2C245&#038;ssl=1\" alt=\"Web-to-Lead generated code\" width=\"593\" height=\"245\" \/><\/a><figcaption id=\"caption-attachment-2991\" class=\"wp-caption-text\">Web-to-Lead generated code<\/figcaption><\/figure>\n<p style=\"text-align: justify;\">Copy and Paste the above code in HTML file and place the file as per requirement.<br \/>\nIn the generated code, you can edit the CSS as per requirement so that it should look as per the theme of the parent side.<\/p>\n<p style=\"text-align: justify;\">However, do not change the following component in code.<\/p>\n<ul>\n<li><strong>&#8220;action&#8221;\u009d<\/strong> url in form tag.<\/li>\n<li><strong>&#8220;method=post&#8221;\u009d<\/strong> in form tag.<\/li>\n<li>Hidden field value of component name <strong>&#8220;oid&#8221;\u009d<\/strong> (This contains the Organization ID and from this only Salesforce comes to know that in which organization the Lead should be created).<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>I decided to write this article because of lots of comments received from the newbies in Salesforce community. We know that the Lead is the pillar object in CRM from where everything is started. And every CRM related software tries their best to offer best and reusable feature to work with lead and same thing [&hellip;]<\/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-2990","post","type-post","status-publish","format-standard","hentry","category-salesforce","tag-salesforce"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":1290,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/lead-convert-problem-in-salesforce\/","url_meta":{"origin":2990,"position":0},"title":"Lead convert problem in Salesforce","author":"Jitendra","date":"October 12, 2010","format":false,"excerpt":"Lead convert problem in Salesforce if the fields in Account, contact, opportunity are mandatory and not available in Lead","rel":"","context":"In &quot;Salesforce&quot;","block_context":{"text":"Salesforce","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/salesforce\/"},"img":{"alt_text":"Lead Conversion error in salesforce","src":"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2010\/10\/Lead-Conversion-error-in-salesforce.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":2990,"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":30625,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/salesforce-lwr-experience-cloud-a-candid-architects-guide\/","url_meta":{"origin":2990,"position":2},"title":"Salesforce LWR Experience Cloud: A Candid Architect&#8217;s Guide","author":"Jitendra Zaa","date":"December 16, 2025","format":false,"excerpt":"An honest, in-depth analysis of Salesforce Lightning Web Runtime (LWR) for Experience Cloud. Learn about real-world limitations, migration challenges, and when LWR is the right choice.","rel":"","context":"In &quot;Experience&quot;","block_context":{"text":"Experience","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/experience\/"},"img":{"alt_text":"Salesforce LWR Experience Cloud","src":"https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2025\/12\/Salesforce-LWR-Experience-Cloud.png?fit=1200%2C290&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2025\/12\/Salesforce-LWR-Experience-Cloud.png?fit=1200%2C290&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2025\/12\/Salesforce-LWR-Experience-Cloud.png?fit=1200%2C290&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2025\/12\/Salesforce-LWR-Experience-Cloud.png?fit=1200%2C290&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2025\/12\/Salesforce-LWR-Experience-Cloud.png?fit=1200%2C290&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":4402,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/using-selenium-to-test-workflow-field-update-action-salesforce-automated-testing-video-tutorial-part-2\/","url_meta":{"origin":2990,"position":3},"title":"Using Selenium to test workflow field update action &#8211; Salesforce automated testing &#8211; Video tutorial &#8211; Part 2","author":"Jitendra","date":"April 27, 2015","format":false,"excerpt":"We have already discussed\u00a0basics of selenium and how we can use this tool for automated testing.\u00a0Here we will see how we can take advantage of Selenium to test workflow field update. in this article we will create a simple workflow rule on Lead object and update \"Description\" field by adding\u2026","rel":"","context":"In &quot;Salesforce&quot;","block_context":{"text":"Salesforce","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/salesforce\/"},"img":{"alt_text":"Salesforce Workflow rule - field update on Lead","src":"https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2015\/04\/Salesforce-Workflow-rule-field-update-on-Lead.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2015\/04\/Salesforce-Workflow-rule-field-update-on-Lead.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2015\/04\/Salesforce-Workflow-rule-field-update-on-Lead.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2015\/04\/Salesforce-Workflow-rule-field-update-on-Lead.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":1279,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/create-and-manage-assignment-rules-in-salesforce\/","url_meta":{"origin":2990,"position":4},"title":"Create and manage Assignment rules in Salesforce","author":"Jitendra","date":"October 12, 2010","format":false,"excerpt":"What is assignment rule in salesforce.com, how to create and manage assignment rules in SFDC","rel":"","context":"In &quot;Salesforce&quot;","block_context":{"text":"Salesforce","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/salesforce\/"},"img":{"alt_text":"Rule Entry for the Case Assignment in Salesforce","src":"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2010\/10\/Rule-Entry-for-the-Case-Assignment-in-Salesforce.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":5885,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/salesforce-spring-17-release-my-favorite-features\/","url_meta":{"origin":2990,"position":5},"title":"Salesforce Spring 17 release &#8211; My favorite features","author":"Jitendra","date":"January 27, 2017","format":false,"excerpt":"List of my favorite features in Salesforce Spring 17","rel":"","context":"In &quot;Salesforce&quot;","block_context":{"text":"Salesforce","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/salesforce\/"},"img":{"alt_text":"Salesforce Apex Batch job - Spring 17","src":"https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2017\/01\/Salesforce-Apex-Batch-job-Spring-17.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2017\/01\/Salesforce-Apex-Batch-job-Spring-17.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2017\/01\/Salesforce-Apex-Batch-job-Spring-17.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2017\/01\/Salesforce-Apex-Batch-job-Spring-17.png?resize=700%2C400&ssl=1 2x"},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/posts\/2990","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=2990"}],"version-history":[{"count":0,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/posts\/2990\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/media?parent=2990"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/categories?post=2990"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/tags?post=2990"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}