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.


LinkBack URL
About LinkBacks



Reply With Quote

Bookmarks