We are trying to restrict the spam leads in salesforce coming from web-to-form.

we have a name field that can bring the spam leads . for example that name holds ---- 5xg7t52899 . How to restrict the above name with only having alphabets. yes we need to restrict numbers only. what is the validation rule need to write in Lead assignment rule to restrict numbers in the name ?

  • 1
    A regex something like [^\d]* or the likes. Did not test but regex should work well. – Eric Apr 24 '17 at 20:51
  • @Eric That's equivalent to \D*. – Adrian Larson Apr 24 '17 at 21:03
  • @AdrianLarson Yea. I rely on regex101 to test. Not a regex wizard by any means. Not even with the basics lol – Eric Apr 24 '17 at 21:04
  • @Eric That's the right tool for the job, I use it too! It has a decent amount of educational content on how stuff works, you just have to find it. – Adrian Larson Apr 24 '17 at 21:08
  • Still we are getting spam leads after I use firstname equals \D* . I just put this on criteria , not in formula to evaluate – Prakash Reddy Apr 24 '17 at 21:17

New Spring 17 Feature

If you haven't already you might want to add include a CAPTCHA in the Web-to-Lead form. Salesforce has added this feature in Spring 17 and this thread digs deeper into it.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.