Reply
Regular Contributor
DataDarling80
Posts: 12

Website CMS isn't working with web-to-lead

So we have a custom version of a content management system based on THP that we're having issues with creating a web-to-lead form in.  When you paste the generated web-to-lead html code (below) then click update, the form's fields appear.  Then once the site is published, there's nothing there but a link back to the home page.  Is there some kind of form plug-in available that's been successful?

 

  

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

 

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

 

<input type=hidden name="oid" value="00D80000000LDOU">

<input type=hidden name="retURL" value="http://www.onestarfoundation.org">

 

 

<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>

 

Services 1:<textarea  id="00N80000003Ck1o" name="00N80000003Ck1o" type="text" wrap="soft"></textarea><br>

 

Services 2:<textarea  id="00N80000003CkSB" name="00N80000003CkSB" type="text" wrap="soft"></textarea><br>

 

EIN:<input  id="00N80000002gWlq" maxlength="10" name="00N80000002gWlq" size="20" type="text" /><br>

 

Mission of Organization:<textarea  id="00N80000002gbNb" name="00N80000002gbNb" rows="3" type="text" wrap="soft"></textarea><br>

 

Affiliate of a larger organization:<input  id="00N80000002gbNg" name="00N80000002gbNg" type="checkbox" value="1" /><br>

 

Faith-based?:<input  id="00N80000002u4Jl" name="00N80000002u4Jl" type="checkbox" value="1" /><br>

 

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

 

</form>

 

Thanks!

Trusted Contributor
MATTYBME
Posts: 395

Re: Website CMS isn't working with web-to-lead

It sounds like your CMS does not handle the form HTML. What is the CMS you are using? Try wrapping the entire form code inside div tags; <div> <---web-to-lead form code---> < /div>
Regular Contributor
DataDarling80
Posts: 12

Re: Website CMS isn't working with web-to-lead

Our web master tried this on your suggestion with a div tag on the front end of the entire thing and the close div on the back end.  Forgive me if this is an ignorant question, but should I suggest that the web master try to wrap each line of the form in div tags?

 

Oh, our CMS is specially designed based on THP.  Is there a plug-in based on type of CMS that will fix? (Wishful thinking!)

 

Thanks!

Trusted Contributor
MATTYBME
Posts: 395

Re: Website CMS isn't working with web-to-lead

It should suffice just to wrap the entire code in the div tags and not each individual line. There is no plugin as such I am afraid, at least from the Salesforce side. There maybe a plugin for your CMS that allows you to post HTML forms. Knowing the actual CMS maybe helpful to do a little digging. The only thing I get when I google THP is a website called freshmeat.net. Is this a CMS and the one you use? It sounds like the code base is PHP. So what you need to find is a PHP plugin that supports HTML forms for your CMS.