function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sapeksh GargSapeksh Garg 

Web to Lead form Issue

Hi All,
I have created a Web to Lead form and put it into the website. It is working fine when I fill that form but I am getting many random Leads as well after putting that form into the website whose name start with a number and Emails are different. These random records are generating in every 10-15 minutes. Kindly review my code and provide me the solution.

<form action="https://www.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8" method="POST">

<input type=hidden name="oid" value="00D58000000OYjZ">
<input type=hidden name="retURL" value="http://friendsofdesign.net/thank-you"">
<input type="text" name="first_name" id="first_name" maxlength="100" placeholder="First Name" style="margin:0 0 3px 0;width:48%;float:left;clear:none;" required>
<input type="text" name="last_name" id="last_name" maxlength="100" placeholder="Last Name" style="margin:0 0 3px 0;width:48%;float:right;clear:none;" required>
     <input type="email" name="email" id="email" maxlength="100" placeholder="Your Email Address Here" style="margin:0;clear:both;margin-top:3px;width:100%;padding:10px 5px;font-size:1em;" required>

<select name="how_did_you_hear_about_us" class="select is_empty" id="lead_source" name="lead_source" style="margin-top:3px;" required><option value="None">How Did You Hear About Us?</option><option value="Advertisement">Advertisement</option>
<option value="Employee Referral">Employee Referral</option>
<option value="Other">Other</option>
<option value="RoadShow">RoadShow</option>
<option value="Career Expo">Career Expo</option>
<option value="Repeat Student">Repeat Student</option>
<option value="Cold Call">Cold Call</option>
<option value="External Referral">External Referral</option>
<option value="Online Course">Online Course</option>
<option value="Public Relations">Public Relations</option>
<option value="Sales Mail Alias">Sales Mail Alias</option>
<option value="Seminar-Internal">Seminar-Internal</option>
<option value="Facebook">Facebook</option>
<option value="Web Research">Web Research</option>
<option value="Chat">Chat</option>
<option value="Google">Google</option>
<option value="Twitter">Twitter</option>
<option value="Career Days">Career Days</option>
<option value="Gumtree">Gumtree</option>
<option value="Cape Times">Cape Times</option>
<option value="Cape Argus">Cape Argus</option>
<option value="The Star">The Star</option>
<option value="The Sunday Independent">The Sunday Independent</option>
<option value="Word of Mouth">Word of Mouth</option>
</select>
<select name="what_are_you_interested_in" class="select is_empty" id="00N5800000BLbi5" name="00N5800000BLbi5" style="margin-top:3px;" required><option value="None">What Are You Interested In?</option><option value="Full Time 2 Year Digital Design Course">Full Time 2 Year Digital Design Course</option>
<option value="Full Time 1 Year Print Design &amp; Publishing">Full Time 1 Year Print Design &amp; Publishing</option>
<option value="Full Time 1 Year Web Publishing &amp; Interactive Media">Full Time 1 Year Web Publishing &amp; Interactive Media</option>
<option value="Full Time 1 Year Game Graphics &amp; Multimedia Environment">Full Time 1 Year Game Graphics &amp; Multimedia Environment</option>
<option value="Part Time Desktop Publishing">Part Time Desktop Publishing</option>
<option value="Part Time Web Publishing">Part Time Web Publishing</option>
<option value="Part Time Electronic Publishing">Part Time Electronic Publishing</option>
<option value="Part Time Specialised Courses">Part Time Specialised Courses</option>
</select>
<p class="form_element hidden" style="margin: 0px;"><label>Form Type</label><select id="00N5800000BLWNP" class="text_input" title="Form Type" name="00N5800000BLWNP">
<option value="Subscribe">Subscribe</option>
</select></p>
<input type="submit" value="Subscribe" style="margin:10px 0 0 0;text-align:left;padding:10px 7px;">
</form> 
Vivek DVivek D
Your code is fine fine what you need to do is add javascript validations to provide correct input. You can use either jQuery or AngularJS for that. Disable the submit button and show inline error on the field where the input is not correct For example you can have name validation email validation and phone etc.
Sapeksh GargSapeksh Garg
I put validation in that code on every fields even I use Captcha but still getting unwanted Leads whose name starting with numbers in every 10-15 minutes.
hd sdhd sd
Keep in mind that the specific benefits of any game wordle peaks (https://mywordle.net/), including "Wordle Unlimited," can vary depending on individual preferences and playstyles.