Web-to-Lead In Salesforce

Creating a Web-to-Lead form in Salesforce allows you to capture lead information directly from your website and automatically create leads within your Salesforce instance

Generate a new HTML by going to Setup > App Setup > Customization > Leads > Web-to-Lead.

Generate Leads from Your Website for Your Sales Teams

We can have multiple web-to-lead forms for various websites or landing pages and can be used to send leads to Salesforce.

Please note that using the Web-to-Lead form you can automatically generate up to 500 new leads a day.

Some of the Lead Sources available in Salesforce

  • Web
  • Phone Inquiry
  • Partner Referral
  • Purchased List
  • Other
  • Employee Referral
  • Twitter
  • External Referral
  • Partner
  • Public Relations
  • Trade Show
  • Word of mouth

Here are the steps to follow 










Click on "Create Web-to-Lead Form"











Once you fill in the details, Click on "Generate"









Here's a simple example of what the HTML code for the Web-to-Lead form might look like:

<form action="https://www.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8" method="POST">
  <input type=hidden name="oid" value="00DXXXXXXXXXXXX">
  <input type=hidden name="retURL" value="http://https://salesforceplayground.blogspot.com/thankyou">
  <label for="first_name">First Name</label>
  <input id="first_name" maxlength="40" name="first_name" size="20" type="text" /><br>
  <label for="last_name">Last Name</label>
  <input id="last_name" maxlength="80" name="last_name" size="20" type="text" /><br>
  <label for="email">Email</label>
  <input id="email" maxlength="80" name="email" size="20" type="text" /><br>
  <label for="phone">Phone</label>
  <input id="phone" maxlength="40" name="phone" size="20" type="text" /><br>
  <input type="submit" name="submit">

</form>

Replace "00DXXXXXXXXXXXX" with your Salesforce organization ID.

Replace "http://https://salesforceplayground.blogspot.com/thankyou" with the URL of the page where you want to redirect users after they submit the form.

This form includes fields for First Name, Last Name, Email, and Phone. You can customize it by adding or removing fields as needed.

After obtaining the HTML code, simply incorporate it into your website. Modifications to the CSS can be made if necessary. Subsequently, any form submissions will generate a lead record labeled 'web' in Salesforce. Utilize Salesforce for automated email follow-ups, guiding customers along their journey, or redirecting them to a sales representative for conversion.

Salesforce Resources

Leads FAQs

Comments

Popular posts from this blog

Introduction to Salesforce Agent Script: Build Predictable AI Agents

Anti-Patterns in Salesforce Agentforce: What to Avoid When Building AI Agents

MCP vs. Traditional APIs: Choosing the Right Integration Approach