TOPIC:

Spam submit script ideas? 1 week 10 hours ago #254640

  • Topic Author
  • vincentmetals
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 2
  • Thanks: 0
How would I write a script that compares the values entered for "Customer Name" and "Company Name" and if they are the same, rejects the form as spam?

Honeypot and ReCaptcha are working great, but I still get spam everyday, with the only common denomitor being that they enter the same value in both these fields. (it comes from different IP's from different countries every single time, so can't block by IP).

Please Log in or Create an account to join the conversation.

Spam submit script ideas? 1 week 10 hours ago #254644

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 3815
  • Karma: 3
  • Thanks: 304
Hi,

1) add textfield to your form and name it for example customername
2) add second textfield to your form and name if for example companyname
3) go to this second textfield->Validation->check Custom and put:
function ff_companyname_validation(element, message)
{
    var first=ff_getElementByName('customername').value;
var second=element.value;
if(first==second || element.value=='') {
if (message=='') message = "Customer and company name is wrong.\n"
        ff_validationFocus(element.name);
        return message;
}
return '';

} // ff_companyname_validation
If some put the same name in customer and company name error message should be displayed

Regards,
Tihana

Please Log in or Create an account to join the conversation.

Spam submit script ideas? 4 days 12 hours ago #254805

  • Topic Author
  • vincentmetals
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 2
  • Thanks: 0
Yes, thank you! This works great.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.045 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

Massive discounts on all subscriptions!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!