Forums

Salesforce web-to-lead

rainie285 01 Sep, 2010
Good morning,

I'm struggling with getting my form data into Salesforce using the CURL plugin. The plugin is enabled. version 3.1RC5.5

It works using the Submit URL, but would like it to save to the database as well.

Simple contact form:

<h1 align="center"><a href="">Contact Us</a> <img src="images/Email.png" width="48" height="48" /></h1><br/>

<div class="form_item">
  <div class="form_element cf_dropdown">
    <label class="cf_label" style="width: 150px;">Salutation</label>
    <select class="cf_inputbox validate-selection" id="salutation" size="1" title="Please select your salutation"  name="salutation">
    <option value="">Choose Option</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>
    
  </div>
  <div class="cfclear"> </div>
</div>

<div class="form_item">
  <div class="form_element cf_textbox">
    <label class="cf_label" style="width: 150px;">First Name</label>
    <input class="cf_inputbox required validate-alpha" maxlength="150" size="30" title="Please enter your first name" id="first_name" name="first_name" type="text" />
  
  </div>
  <div class="cfclear"> </div>
</div>

<div class="form_item">
  <div class="form_element cf_textbox">
    <label class="cf_label" style="width: 150px;">Last Name</label>
    <input class="cf_inputbox required validate-alpha" maxlength="150" size="30" title="Please enter your last name" id="last_name" name="last_name" type="text" />
  
  </div>
  <div class="cfclear"> </div>
</div>

<div class="form_item">
  <div class="form_element cf_textbox">
    <label class="cf_label" style="width: 150px;">Company</label>
    <input class="cf_inputbox" maxlength="150" size="30" title="" id="company" name="company" type="text" />
  
  </div>
  <div class="cfclear"> </div>
</div>

<div class="form_item">
  <div class="form_element cf_textbox">
    <label class="cf_label" style="width: 150px;">Email Address</label>
    <input class="cf_inputbox required validate-email" maxlength="150" size="30" title="Please enter a valid email address" id="email" name="email" type="text" />
  
  </div>
  <div class="cfclear"> </div>
</div>

<div class="form_item">
  <div class="form_element cf_textarea">
    <label class="cf_label" style="width: 150px;">Message</label>
    <textarea class="cf_inputbox required" rows="3" id="description" title="Please enter your message" cols="30" name="description"></textarea>
    
  </div>
  <div class="cfclear"> </div>
</div>



<div class="form_item">
  <div class="form_element cf_button">
    <input value="Submit" name="button_10" type="submit" /><input type="reset" name="reset" value="Reset"/>
  </div>
  <div class="cfclear"> </div>
</div>


[attachment=0]form1.pdf[/attachment]

The form saves to the database, redirects to the correct URL, but no data to Salesforce. What am I missing here (besides another cup of coffee)? I've attached screen shots of my configurations.

Please help!

Rainie dey

P.S. Bob-I purchased your book yesterday. Very helpful.
GreyHead 01 Sep, 2010
Hi rainie285,

Quick check- so you have the CURL plug-in enabled on the FormPlugins tab (a *green* bar is enabled).

Bob

PS Thanks for buying the book, delighted to hear that you are finding it helpful.
rainie285 01 Sep, 2010
Yes[attachment=0]form2.pdf[/attachment]
GreyHead 01 Sep, 2010
Hi rainie285,

Next check. The extra fields data should be in this format:
recordType=012A0000000xxxx
oid=00DA0000000xxxx


Bob
rainie285 01 Sep, 2010
[SOLVED] That was the problem!!!!

Thank you so much and have a great day!

Rainie dey
This topic is locked and no more replies can be posted.