LeadSquared Developer Centre

ON THIS PAGE

Script to capture leads from website forms – Single form


Sample form html: 

<!DOCTYPE html>
<html>
<head>
<title>Capture Lead: Single Form</title>
</head>
<body>
<form id=”myLandingPageForm”>
<table align=”center” border=”1″ cellspacing=”5″ cellpadding=”5″ width=”400px” style=”margin:20px auto; background: #eff8ff; border: 1px solid #a0a0a0; border-collapse: collapse; “>
<tr align=”left” valign=”top”>
<td><label for=’firstname’>Name *</label></td>
<td><input type=’text’ id=’firstname’ name=’fname’ maxlength=’100′ value=” autocomplete=’off’ required=’required’ /></td>
</tr>
<tr>
<td><label for=’lastname’>Last Name</label></td>
<td><input type=’text’ id=’lastname’ name=’lname’ maxlength=’100′ value=” autocomplete=’off’ /></td>
</tr>
<tr>
<td><label for=’emailaddress’>Email *</label></td>
<td><input type=’text’ id=’emailaddress’ name=’email’ maxlength=’100′ value=” autocomplete=’off’ required=’required’ /></td>
</tr>
<tr>
<td><label for=’mobile’>Mobile Number</label></td>
<td><input type=’text’ id=’mobile’ name=’mobile’ maxlength=’20’ value=” autocomplete=’off’ /></td>
</tr>
<tr>
<td><label for=’city’>City</label></td>
<td>
<input type=’text’ id=’city’ name=’city’ maxlength=’30’ value=” autocomplete=’off’ />
</td>
</tr>
<tr>
<td></td>
<td>
<button id=”form-submit-button” type=”submit”>Submit</button>
</td>
</tr>
</table>
</form>

On this page

© 2022 by MarketXpander Services Pvt Ltd. All Rights Reserved.