TOPIC:

Fighting spams 1 month 1 day ago #274507

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

1) message will not be sent if there is empty field,depend where you add it
2) in field in which you want the code->Propertis->Validation->check Custom

If you want I can add it for you, then send me login information, backend link, form name, and name of field in which you want add this

Use this tag:
[confidential]
[/confidential]

Regards,
Tihana

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

Fighting spams 1 month 1 day ago #274509

  • Repitol
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 126
  • Thanks: 2
Yes ! I was looking in the form properties not in the element properties.
I added the custom code in the text-field I called "message" (message fom the user)
I added the code as follow. Is that correct ?
function ff_message_validation(element, message)
{
 var ex=/(<([^>]+)>)/ig;
    var ex1=/(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)/g;
    if (!ex.test(element.value) && !ex1.test(element.value) && element.value != '') return '';
        if (message=='') message = element.name+" can't have HTML and links or be empty.\n";
        ff_validationFocus(element.name);
        return message;
} // ff_message_validation

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

Last edit: Post by Repitol.

Fighting spams 1 month 1 day ago #274513

  • Mirec's Avatar
  • Mirec
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 2676
  • Karma: 2
  • Thanks: 145
Hi,

oke, did you test it?

when you click on the submit button then this script should be triggered?


Let me know

regards,
Mirko

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

Fighting spams 1 month 1 day ago #274515

  • Repitol
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 126
  • Thanks: 2
it seems working. The message is sent I wait for its reception.
And I just received the messages sent with the honeypot trick. So it works too :)it was just a bit long to be received.
Many thanks !

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

Fighting spams 1 month 1 day ago #274517

  • Mirec's Avatar
  • Mirec
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 2676
  • Karma: 2
  • Thanks: 145
Hi,

supeerrr :)

If you need more help, let us know and we'll solve everything!

Have a nice day!

Regards,
Mirko

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

  • Page:
  • 1
  • 2
Moderators: ForumSupport
Time to create page: 0.050 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!