Ask Search:
Aaron HillAaron Hill 

Web to Lead endpoints Update: URL not working.

I did the update outlined in this post: https://help.salesforce.com/articleView?id=Updating-the-Web-to-Case-and-Web-to-Lead-Endpoint-URL&language=en_US&type=1

I replaced the expiring W2L address with the new endpoint address and quadruple checked that I had it right. My test leads aren't being created. Yes, I have a dupecatcher. Yes, I'm using test emails that are unique to my org. I really need to get this fixed asap as the other endpoints expire at midnight and one of my web forms is now non-functional. I appreciate any help/advice. 

Best,
Aaron
Best Answer chosen by Aaron Hill
Steve BainesSteve Baines
Looks like the hidden field for you org id is missing.
Try this code but replace xxx with your org id:
 
<form id="projectPlannerFooter" action="https://webto.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8" method="POST" name="projectPlannerFooter">

<input name="oid" type="hidden" value="xxx" />

<input name="retURL" type="hidden" value="http://elearningmind.com/thank-projectplanner/" />

<label for="first_name">First Name</label><input id="first_name" maxlength="40" name="first_name" required="" size="20" type="text" />

<label for="last_name">Last Name</label><input id="last_name" maxlength="80" name="last_name" required="" size="20" type="text" />

<label for="email">Email</label><input id="email" maxlength="80" name="email" required="" size="20" type="text" />

<label for="company">Company</label><input id="company" maxlength="40" name="company" required="" size="20" type="text" />

<label for="phone">Phone</label><input id="phone" maxlength="40" name="phone" required="" size="20" type="text" />

<label for="description">How can we help?</label><textarea name="description"></textarea>

Newsletter Subscribe:<input id="00Ni000000FwRxh" name="00Ni000000FwRxh" type="checkbox" value="1" />

<div class="g-recaptcha" style="transform: scale(0.77); -webkit-transform: scale(0.77); transform-origin: 0 0; -webkit-transform-origin: 0 0;" data-sitekey="6LfB-SYUAAAAAPUEY0twzID-pG0YKxjq78H4cYH6"></div>

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

</form>

 

All Answers

Steve BainesSteve Baines
Are you posting with a standard HTML form action or are you posting to the URL with server-side code?
Aaron HillAaron Hill
Hey Steve, it's just a generic HTML form as far as I can tell- I'll add my code below. There is a recaptcha snippet. That probably wouldn't be the issue I don't think though.

Thanks for your help.
 
<form id="projectPlannerFooter" action="https://webto.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8" method="POST" name="oid">

<input name="retURL" type="hidden" value="http://elearningmind.com/thank-projectplanner/" />

<label for="first_name">First Name</label><input id="first_name" maxlength="40" name="first_name" required="" size="20" type="text" />

<label for="last_name">Last Name</label><input id="last_name" maxlength="80" name="last_name" required="" size="20" type="text" />

<label for="email">Email</label><input id="email" maxlength="80" name="email" required="" size="20" type="text" />

<label for="company">Company</label><input id="company" maxlength="40" name="company" required="" size="20" type="text" />

<label for="phone">Phone</label><input id="phone" maxlength="40" name="phone" required="" size="20" type="text" />

<label for="description">How can we help?</label><textarea name="description"></textarea>

Newsletter Subscribe:<input id="00Ni000000FwRxh" name="00Ni000000FwRxh" type="checkbox" value="1" />

<div class="g-recaptcha" style="transform: scale(0.77); -webkit-transform: scale(0.77); transform-origin: 0 0; -webkit-transform-origin: 0 0;" data-sitekey="6LfB-SYUAAAAAPUEY0twzID-pG0YKxjq78H4cYH6"></div>

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

</form>

 
Steve BainesSteve Baines
Looks like the hidden field for you org id is missing.
Try this code but replace xxx with your org id:
 
<form id="projectPlannerFooter" action="https://webto.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8" method="POST" name="projectPlannerFooter">

<input name="oid" type="hidden" value="xxx" />

<input name="retURL" type="hidden" value="http://elearningmind.com/thank-projectplanner/" />

<label for="first_name">First Name</label><input id="first_name" maxlength="40" name="first_name" required="" size="20" type="text" />

<label for="last_name">Last Name</label><input id="last_name" maxlength="80" name="last_name" required="" size="20" type="text" />

<label for="email">Email</label><input id="email" maxlength="80" name="email" required="" size="20" type="text" />

<label for="company">Company</label><input id="company" maxlength="40" name="company" required="" size="20" type="text" />

<label for="phone">Phone</label><input id="phone" maxlength="40" name="phone" required="" size="20" type="text" />

<label for="description">How can we help?</label><textarea name="description"></textarea>

Newsletter Subscribe:<input id="00Ni000000FwRxh" name="00Ni000000FwRxh" type="checkbox" value="1" />

<div class="g-recaptcha" style="transform: scale(0.77); -webkit-transform: scale(0.77); transform-origin: 0 0; -webkit-transform-origin: 0 0;" data-sitekey="6LfB-SYUAAAAAPUEY0twzID-pG0YKxjq78H4cYH6"></div>

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

</form>

 
This was selected as the best answer
Aaron HillAaron Hill
You're absolutely right. I must have cut it out by mistake. Thanks for your help. 
 
Steve BainesSteve Baines
Now you can get some sleep tonight :-)