Results 1 to 5 of 5

Thread: Error in lead capture form

  1. #1
    sawan is offline Sugar Community Member
    Join Date
    Dec 2007
    Posts
    130

    Default Error while submitting the lead capture form

    Hi everyone,

    I am working on Version 5.0.0a (Build 3120) Community edition.

    I am trying to make a web lead capture form.


    This is the form for data entry and currently i have placed it in the sugarcrm/examples directory and name is Myleadcapture.html.

    <html>
    <body>
    Welcome to my awesome lead capture form!<br>
    <br>
    <br>
    <form name="lead_capture" action="http://(mywebplace)/sugarcrm/leadCapture.php" method="post">
    <input type='hidden' name='redirect' value='http://www.sugarcrm.com'>
    <input type='hidden' name='lead_source' value='Web Site'>
    <input type='hidden' name='user' value='my_lead_capture_form'>
    First Name: <input type='text' name='first_name'> <br>
    Last Name: <input type='text' name='last_name'> <br>
    Required for: <select name="hi_housing_for_c">
    <option value="A Friend">A Friend</option>
    <option value="An Employee">An Employee</option>
    </select><br>
    Priority: <select name="priority_c">
    <option value="High">High</option>
    <option value="Medium">Medium</option>
    </select><br>
    Location: <select name="hi_location_c">
    <option value="Austin, TX ">High</option>
    <option value="Washington DC">Medium</option>
    </select><br>
    PriceRange: <select name="hi_price_range_c">
    <option value="$2,000-$2,499">$2,000-$2,499</option>
    <option value="$2,500-$2,999">$2,500-$2,999</option>
    </select><br>
    Duration: <select name="hi_duration_c">
    <option value="One Month Only">One Month Only</option>
    <option value="Month to month">Month to month</option>
    </select> <br>
    Mov-in-date: <input type='text' name='hi_move_in_date_c'> <br>
    Mov-out-date: <input type='text' name='hi_move_out_date_c'><br>
    Adults: <input type='text' name='hi_adults_qty_c'><br>
    Children: <input type='text' name='hi_children_qty_c'><br>
    Description: <select name="description">
    <option value="Sugar is good">Sugar is good</option>
    <option value="Sugar is great">Sugar is great</option>
    <option value="Sugar is the greatest">Sugar is the greatest</option>
    </select><br>
    <input type='Submit' name='submit' value='Submit' >
    </form>
    </body>


    I have made a leadCapture_override.php which contains the value of 'my_lead_capture_form' with user name and password

    All necessary fields for leads is in this form.

    But the problem is every time i submit the form i get this error message

    Notice: Object of class Lead could not be converted to int in F:\interimhousingsolutions_com\sugarcrm\leadCaptur e.php on line 102

    Notice: Object of class Lead could not be converted to int in F:\interimhousingsolutions_com\sugarcrm\leadCaptur e.php on line 102

    Notice: Object of class Lead could not be converted to int in F:\interimhousingsolutions_com\sugarcrm\leadCaptur e.php on line 102


    Can smoebody please guide me if i am wrong somewhere or something additional needs to be done.
    It is really urgent.
    Your guidance would be very helpful,Thanks in advance.
    Last edited by sawan; 2008-03-05 at 09:49 AM.

  2. #2
    sawan is offline Sugar Community Member
    Join Date
    Dec 2007
    Posts
    130

    Default Re: Error in lead capture form

    Please friends i am trying to solve this,but if you have solution please guide me.

  3. #3
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Error in lead capture form

    Hi, Sawan.

    Can you offer us the leadCapture_override.php code?


    Cheers.

    André Lopes
    Lâmpada Global Services
    Rua Bela Cintra, 299 conjunto. 51
    São Paulo, SP 01415-000
    tel1. 55 11 3237-3110
    cel. 55 11 7636-5859
    e-mail: info@lampadacrm.com.br

  4. #4
    sawan is offline Sugar Community Member
    Join Date
    Dec 2007
    Posts
    130

    Default Re: Error in lead capture form

    Yes sure,
    this is the only code of leadCapture_override.php which is in the same directory where the leadcapture.php resides.
    <?
    $users = array(
    'my_lead_capture_form' => array( 'name' => 'USERNAME GOES HERE',
    'pass' => 'PASSWORD HASH GOES HERE' ));
    ?>

  5. #5
    innerkube is offline Junior Member
    Join Date
    Jan 2009
    Posts
    1

    Default Re: Error in lead capture form

    Did anyone ever get this working? I'm having the same trouble now

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 2009-10-23, 02:41 PM
  2. Problem in making a web to lead form
    By sawan in forum General Discussion
    Replies: 2
    Last Post: 2008-08-05, 02:55 AM
  3. Replies: 5
    Last Post: 2007-06-22, 03:57 AM
  4. problem with lead
    By artinfo in forum Help
    Replies: 0
    Last Post: 2007-03-11, 04:09 PM
  5. From lead to order
    By george_bbch in forum Feature Requests
    Replies: 0
    Last Post: 2006-09-26, 02:02 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •