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
ThrantorThrantor 

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:

 

<html>
	<head>
		<META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=UTF-8">
	</head>
	<body>
		<form action="https://www.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8" method="POST">

		<input type=hidden name="oid" value="00DT0000000HRXp">
		<input type=hidden name="retURL" value="http://pictometry.com">
<input type="hidden" name="debug" value=1>
<input type="hidden" name="debugEmail" value="xxxx@pictometry.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">

</form>
	</body>
</html>

 

 

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
retURL: http://pictometry.com
debug: 1
debugEmail: xxxx@pictometry.com
first_name: Matthew
last_name: Allen
email: xxxx@pictometry.com
company: Pictosomething
city: Rocherster
state: NY
submit: Submit Query
werewolfwerewolf

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

kyle.tkyle.t

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.

ColinMcGColinMcG

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:

 

https://www.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8

 

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:

 

https://cs1.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8