function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Web to Lead form not generating leads or debug email.

We have created a web to lead form from our developer sandbox. But sadly, none of the data we are entering has been working. We have enabled the debug setting but haven't gotten anything back in a debug email.


The html we are using is:


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

		<input type=hidden name="oid" value="00DT0000000HRXp">
		<input type=hidden name="retURL" value="">
<input type="hidden" name="debug" value=1>
<input type="hidden" name="debugEmail" value="">
<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">




But I am using a valid email address in the real HTML.


What we get from the salesforce servlet is:


Your request has been queued.

Record Information:

oid: 00DT0000000HRXp
debug: 1
first_name: Matthew
last_name: Allen
company: Pictosomething
city: Rocherster
state: NY
submit: Submit Query

Have you turned on the Debug Log in Setup | Monitoring to see if one of your validation rules is killing the lead?


Did you ever come up with a solution to this?  I seem to be experienceing the same issue. Turned on debugging for the web-to-lead creator and don't have any logs showing validation rule issues.


Hi, not sure if you've worked this out yet, but the problem may be due to the URL you are using on the form action:


The address needs to be modified to the URL in use on sandbox. For example, if your sandbox is on CS1, this part should be: