I am using salesforce sandbox. When I tried to create Lead using Web To Lead I end up with no result.

when I submit the form I am getting following text,

Your request has been queued.

Record Information:

city: xxx
company: xxx
debug: 1
debugEmail: xxx@xxx.com
email: xxx@xxx.com
encoding: UTF-8
first_name: TestLead
last_name: TestLead
lead_source: web
oid: 00DO00xxxxxx
retURL: https://www.google.com/
state: state
submit: Submit Query

After getting the above information, I went to check the Lead panel, the lead is not created.

Note: My salesforce has custom domain name its not test.salesforce.com Please let me know if that is the problem. URL is, https://xxx.cs5.my.salesforce

    <META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=UTF-8">

    <!--  ----------------------------------------------------------------------  -->
    <!--  NOTE: Please add the following <FORM> element to your page.             -->
    <!--  ----------------------------------------------------------------------  -->

    <form action="https://test.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8" method="POST">

    <input type="hidden" name="oid" value="00DXXXXXXXXXXXX">
    <input type="hidden" name="retURL" value="https://www.google.com/">

    <!--  ----------------------------------------------------------------------  -->
    <!--  NOTE: These fields are optional debugging elements. Please uncomment    -->
    <!--  these lines if you wish to test in debug mode.                          -->
        <input type="hidden" name="debug" value="1">          -                 
        <input type="hidden" name="debugEmail" value="test@test.com">                       
    <!--  ----------------------------------------------------------------------  -->

    <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="company">Company</label><input  id="company" maxlength="40" name="company" size="20" type="text" /><br>

    <label for="city">City</label><input  id="city" maxlength="40" name="city" size="20" type="text" /><br>

    <label for="state">State/Province</label><input  id="state" maxlength="20" name="state" size="20" type="text" /><br>

    <input type="submit" name="submit">



  • You can try to debug by uncommenting <input type="hidden" name="debug" value="1"> <input type="hidden" name="debugEmail" value="test@test.com"> and putting your email address – Robin De Bondt Apr 7 '15 at 11:50
  • It's been done. I got "Your request has been queued." But no leads created. Thanks – Nandhu Apr 7 '15 at 11:51
  • Are you also sure the org Id is the one from your sandbox, and not your production org Id? – Robin De Bondt Apr 7 '15 at 11:52
  • Yes, I am very sure. I have double checked it and I am having the sandbox ORG ID only not production org ID. – Nandhu Apr 7 '15 at 11:55
  • Don't you also need to set a Lead Status? It's one of those required fields you can't get rid off, right? – Robin De Bondt Apr 7 '15 at 12:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.