• Derek Morsch
  • NEWBIE
  • 10 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 9
    Replies
Hello,

I have created a web to lead form with certain required fields. However, I am getting leads coming in with those fields left blank. Having tested the form in a few browsers, I know at least Safari does not require the user to input text in the required fields. Is there anything that can be done about this?

Thanks.
Hello,

I have currently created the below web-to-lead form but I am having trouble with a couple things. What code/script would I need to input to ensure the email field does not allow email addresses from gmail, yahoo, hotmail, etc...? Also, how do I make certain fields like first name, last name, email, and web site required fields?

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

<input type=hidden name="oid" value="00Dc0000003kLYk">
<input type=hidden name="retURL" value="http://streamlinx.com/thank-you/">

<!--  ----------------------------------------------------------------------  -->
<!--  NOTE: These fields are optional debugging elements. Please uncomment    -->
<!--  these lines if you wish to test in debug mode.                          -->
<!--  <input type="hidden" name="debug" value=1>                              -->
<!--  <input type="hidden" name="debugEmail"                                  -->
<!--  value="example@example.com(for privacy purposes)">                                    -->
<!--  ----------------------------------------------------------------------  -->

<label for="first_name">First Name</label><input  id="first_name" maxlength="40" name="first_name" size="20" type="text" /><br>

<label for="last_name">Last Name</label><input  id="last_name" maxlength="80" name="last_name" size="20" type="text" /><br>

<label for="phone">Phone</label><input  id="phone" maxlength="40" name="phone" size="20" type="text" /><br>

<label for="email">Email</label><input  id="email" maxlength="80" name="email" size="20" type="text" /><br>

<label for="company">Company</label><input  id="company" maxlength="40" name="company" size="20" type="text" /><br>

<label for="city">City</label><input  id="city" maxlength="40" name="city" size="20" type="text" /><br>

<label for="state">State/Province</label><input  id="state" maxlength="20" name="state" size="20" type="text" /><br>

<label for="URL">Website</label><input  id="URL" maxlength="80" name="URL" size="20" type="text" /><br>

<input id="00N80000005owbR" name="00N80000005owbR" type="hidden"><br>

<input type="submit" name="submit">

</form>
Hello,

I have created a web to lead form with certain required fields. However, I am getting leads coming in with those fields left blank. Having tested the form in a few browsers, I know at least Safari does not require the user to input text in the required fields. Is there anything that can be done about this?

Thanks.
Hello,

I have currently created the below web-to-lead form but I am having trouble with a couple things. What code/script would I need to input to ensure the email field does not allow email addresses from gmail, yahoo, hotmail, etc...? Also, how do I make certain fields like first name, last name, email, and web site required fields?

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

<input type=hidden name="oid" value="00Dc0000003kLYk">
<input type=hidden name="retURL" value="http://streamlinx.com/thank-you/">

<!--  ----------------------------------------------------------------------  -->
<!--  NOTE: These fields are optional debugging elements. Please uncomment    -->
<!--  these lines if you wish to test in debug mode.                          -->
<!--  <input type="hidden" name="debug" value=1>                              -->
<!--  <input type="hidden" name="debugEmail"                                  -->
<!--  value="example@example.com(for privacy purposes)">                                    -->
<!--  ----------------------------------------------------------------------  -->

<label for="first_name">First Name</label><input  id="first_name" maxlength="40" name="first_name" size="20" type="text" /><br>

<label for="last_name">Last Name</label><input  id="last_name" maxlength="80" name="last_name" size="20" type="text" /><br>

<label for="phone">Phone</label><input  id="phone" maxlength="40" name="phone" size="20" type="text" /><br>

<label for="email">Email</label><input  id="email" maxlength="80" name="email" size="20" type="text" /><br>

<label for="company">Company</label><input  id="company" maxlength="40" name="company" size="20" type="text" /><br>

<label for="city">City</label><input  id="city" maxlength="40" name="city" size="20" type="text" /><br>

<label for="state">State/Province</label><input  id="state" maxlength="20" name="state" size="20" type="text" /><br>

<label for="URL">Website</label><input  id="URL" maxlength="80" name="URL" size="20" type="text" /><br>

<input id="00N80000005owbR" name="00N80000005owbR" type="hidden"><br>

<input type="submit" name="submit">

</form>