Hii I am New in SalesForce CRM and i am facing big problem with Salesforce Web To lead form what i did i have created landing page and in which one lead Collection Form connected to Sales Force CRM now what is the problem i am facing is when i am Going to Submit my form only Two Fields are coming in Database why all fields are not coming Please help me out

Dani AI

Generated

Short, practical addendum that complements the thread (good catch by ; nice follow-up by ):

Most Web‑to‑Lead problems like this come down to HTML form naming, not Salesforce. Browsers send form fields keyed by each control’s name attribute (the id is only for CSS/JS); Salesforce maps incoming POST parameters to Lead fields by those names, so a missing or misspelled name (or using id instead of name) means that value is never passed. (html.spec.whatwg.org)

Quick checklist to fix and verify (follow in order):

  • Regenerate the Web‑to‑Lead HTML inside Salesforce and copy the generated form so the name attributes match exactly what Salesforce expects; only change layout/CSS, not the input names. (help.salesforce.com)
  • If you add custom Lead fields, use the Salesforce field API id (the 00N... id) as the input name so Salesforce accepts it. (salesforce.stackexchange.com)
  • Keep every input/select inside the <form> with a proper name (not disabled). Use the browser DevTools Network tab to inspect the POST payload and confirm which keys/values are actually sent.
  • If some submissions never appear, check org limits/processing (Web‑to‑Lead queuing and the daily cap) and duplicate rules — these can delay or reject leads. (salesforceben.com)

A couple of clarifying notes: picklist/select values must match values Salesforce expects (use the picklist labels/values generated or confirmed in your org), otherwise Salesforce may ignore or default them. (salesforce.stackexchange.com)

Summary: the fix is usually to preserve Salesforce’s generated name attributes and retest (unique email for easy lookup). This thread already shows that inspecting names/ids solved it — that is the right approach.

Recommended Answers

All 14 Replies

Why are only two fields getting inserted into the db? Uhm, bad code? We have no idea what is going wrong as we have no idea what the form (the HTML of the form, not a screenshot) looks like, nor do we know how that is being read and processed (the code).

Why are only two fields getting inserted into the db? Uhm, bad code? We have no idea what is going wrong as we have no idea what the form (the HTML of the form, not a screenshot) looks like, nor do we no how that is being read and processed (the code).

Have you Ever Heard About Sales Force CRM ........my question is specfic and there is no issue with Coding part

there is no issue with Coding part

And you're so sure of that? Well, if that's the case the problem is your form, but I would then say to ask the developers of Sales Force CRM (or, probably just read the manual).

u want to show my Coding part ..........then i can show you........

<div id="form"><br> 
<br> 
 
 
<form action="" method="POST"> 
 
<input type=hidden name="oid" value="00DD0000000lEoz"> 
<input type=hidden name="retURL" value="http://www.somedomain.com"> 
 

 
<table width="100%" border="0" cellspacing="0" cellpadding="0"> 
            
            <tr> 
              <td width="4%" height="32">&nbsp;</td> 
              <td width="32%" valign="top" class="red-color">Salutation :</td> 
              <td width="64%" valign="top"><span id="spryselect1"> 
                <select  id="salutation" name="salutation"> 
                  <option value="">--None--</option> 
                  <option value="Mr.">Mr.</option> 
                  <option value="Ms.">Ms.</option> 
                  <option value="Mrs.">Mrs.</option> 
                  <option value="Dr.">Dr.</option> 
                  <option value="Prof.">Prof.</option> 
                </select> 
            </td> 
            </tr> 
            <tr> 
              <td height="31">&nbsp;</td> 
              <td valign="top" class="red-color">First Name :</td> 
              <td valign="top"> 
              <input  id="first_name" maxlength="40" name="first_name" size="20" type="text" /> 
              </td> 
            </tr> 
            <tr> 
              <td height="36">&nbsp;</td> 
              <td valign="top" class="red-color">Last Name :</td> 
              <td valign="top"> 
              <input  id="first_name2" maxlength="40" name="first_name2" size="20" type="text" /> 
          </td> 
            </tr> 
            <tr> 
              <td height="36">&nbsp;</td> 
              <td valign="top" class="red-color">Email :</td> 
              <td valign="top"> 
              <input  id="first_name3" maxlength="40" name="first_name3" size="20" type="text" /> 
             </td> 
            </tr> 
            <tr> 
              <td height="36">&nbsp;</td> 
              <td valign="top" class="red-color">Phone :</td> 
              <td valign="top"> 
              <input  id="first_name4" maxlength="40" name="first_name4" size="20" type="text" /> 
              </td> 
            </tr> 
            <tr> 
              <td height="30">&nbsp;</td> 
              <td valign="top" class="red-color">Zip :</td> 
              <td valign="top"> 
              <input  id="first_name5" maxlength="40" name="first_name5" size="20" type="text" /> 
              </td> 
            </tr> 
            <tr> 
              <td height="33">&nbsp;</td> 
              <td valign="top" class="red-color">Lead Source :</td> 
              <td valign="top"> 
                <select  id="lead_source" name="lead_source"> 
                  <option value="">--None--</option> 
                  <option value="Advertisement">Advertisement</option> 
                  <option value="Employee Referral">Employee Referral</option> 
                  <option value="External Referral">External Referral</option> 
                  <option value="Partner">Partner</option> 
                  <option value="Public Relations">Public Relations</option> 
                  <option value="Seminar - Internal">Seminar - Internal</option> 
                  <option value="Seminar - Partner">Seminar - Partner</option> 
                  <option value="Trade Show">Trade Show</option> 
                  <option value="Web">Web</option> 
                  <option value="Word of mouth">Word of mouth</option> 
                  <option value="Other">Other</option> 
                  <option value="Dianomi">Dianomi</option> 
                </select> 
             </td> 
            </tr> 
            <tr> 
              <td height="35">&nbsp;</td> 
              <td colspan="2" align="center"><input name="submit" type="submit" value="Submit"></td> 
            </tr> 
            <tr> 
              <td colspan="3">&nbsp;</td> 
            </tr> 
          </table> 
 
</form> 
 
        </div>

u want to show my Coding part ..........then i can show you........

I don't really care, but when you come to forum and say I have this, it does (or doesn't) do this and then reject the first suggestion made, you are not improving your chances of getting any quality help.

Hey i am not here to fight anyone if anyone is here and help me out then please help me .........if this forum is not helping people...........then y you are moderating this

Well, for one, I would like to know which two fields are getting successfully added, and if they are the "First Name" and "Lead Source" fields, then I would say to inspect the input ids (and names).

Hey @masijade i am not here to fight anyone if anyone is here and help me out then please help me .........if this forum is not helping people...........then y you are moderating this

And that post was not "fighting" you. That post was advice.

hey buddy yes .......only these two are coming

ohhhhh man ............yes ......problem with id......

And that post was not "fighting" you. That post was advice.

Thanks a lot

ohhhhh man ............yes ......problem with id......

All I can say is "attention to detail", as I don't know anything about "Sales Force CRM", but I can now make a few "educated" guesses about how it works.

you pick up wrong forum to post your question. What we do is help people with their coding problems/issues and we do not provide support for end user applications. For that you want to use product support page.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.