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
zeezackzeezack 

Web To Lead Form - urgent request

Hello,

I am trying to create a web 2 lead form, so that a person can enter in a new lead from a form. The form works great accept, one field, no matter what it is set to...seems to be on default. I've checked the fields and there is nothing like that.

 

 

 

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <form action="#" method="POST"> <input type=hidden name="oid" value="00D200000007fhu"> <input type=hidden name="retURL" value="http://"> <!-- <option value="">--None--</option><option value="012200000000rWc">MCS</option> <option value="012200000000rWm">Pixpay</option> --> <label for="RecordTypeId">Lead Record Type</label><select id="RecordTypeId" name="RecordTypeId"> <option value="">--None--</option> <option value="012200000000rWc">MCS</option> <option value="012200000000rWm">Pixpay</option> </select><br> <input id="lead_source" name="lead_source" type="hidden" value="CPM4"/> <input id="00N20000001BSno" name="00N20000001BSno" type="hidden" value="PAYMENT RECEIVED + AWAITING URU"/> Date Of Birth: <input id="00N20000001BSoT" maxlength="100" name="00N20000001BSoT" size="20" type="text" /><br> Password: <input id="00N20000001BSpB" maxlength="100" name="00N20000001BSpB" size="20" type="text" /><br> GBP£ Quantity: <input id="00N20000001BSpD" maxlength="100" name="00N20000001BSpD" size="20" type="text" /><br> Electoral Role: <input id="00N20000001BSpz" maxlength="100" name="00N20000001BSpz" size="20" type="text" /><br> Landline Payee: <input id="00N20000001BSpv" maxlength="100" name="00N20000001BSpv" size="20" type="text" /><br> <label for="salutation">Salutation</label> <select id="salutation" name="salutation"> <option value="">--None--</option> <option value="Mr.">Mr.</option> <option value="Miss.">Miss.</option> <option value="Ms.">Ms.</option> <option value="Mrs.">Mrs.</option> <option value="Dr.">Dr.</option> <option value="Prof.">Prof.</option> </select><br> <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="phone">Phone</label> <input id="phone" maxlength="40" name="phone" size="20" type="text" /><br> <label for="mobile">Mobile</label> <input id="mobile" maxlength="40" name="mobile" size="20" type="text" /><br> <label for="email">Email</label> <input id="email" maxlength="80" name="email" size="20" type="text" /><br> <label for="street">Address</label> <textarea name="street"></textarea><br> <label for="state">State/Province</label> <input id="state" maxlength="20" name="state" size="20" type="text" /><br> <label for="city">City</label> <input id="city" maxlength="40" name="city" size="20" type="text" /><br> <label for="zip">Zip</label> <input id="zip" maxlength="20" name="zip" size="20" type="text" /><br> <label for="country">Country</label> <input id="country" maxlength="40" name="country" size="20" type="text" /><br> <input type="submit" name="submit"> </form> </body> </html>

 

 

 

zeezackzeezack

I am wondering if it is the name of the variable... that web 2 lead is not picking up

 

 

in the database the lead - field is RecordTypeId

 

in the generated form it comes out as 

 

 

 

<label for="recordType">Lead Record Type</label><select id="recordType" name="recordType"><option value="">--None--</option><option value="012200000000rWc">MCS</option> <option value="012200000000rWm">Pixpay</option> </select><br>

 

 

 

jwetzlerjwetzler
Moving this into the General Development forum as it's unrelated to Visualforce.
zeezackzeezack
any suggestions on what is wrong here?
jadentrjadentr

I had the same problem and its an easy fix. The following must be set

 

1. Goto Setup -> Customize -> Lead -> Settings

2. Under "The behavior used when applying assignment rules to manually created records." Check the "Keep the existing record type"

 

 

https://na5.salesforce.com/help/doc/user_ed.jsp?loc=support