TOPIC:

Contact Form Not Working 1 week 5 days ago #261474

  • tavellana's Avatar Topic Author
  • tavellana
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 32
  • Thanks: 0
The contact form has stopped working. Can you please take a look at this? saintlawrence.net/contact-us/online-form
Thanks in advance!
Tony

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

Contact Form Not Working 1 week 4 days ago #261479

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

something in the code you have an error:
Uncaught SyntaxError: Invalid regular expression: missing /
and that is the reason why form stopped work.

If you want I can access to your page, and find where this / is missing.
If yes, please send me login information and backend link.

Use this tag:
[confidential]
[/confidential]

Regards,
Tihana

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

Contact Form Not Working 1 week 4 days ago #261486

  • tavellana's Avatar Topic Author
  • tavellana
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 32
  • Thanks: 0
Thanks, Tihana, I'd appreciate looking at the contact form. Here are your credentials:

This message contains confidential information

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

Contact Form Not Working 1 week 4 days ago #261489

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

could you please check it, because whetever I delete, the form does not change, and everything is remembered from before (code is changed but not affected to the form)?

I found that problem is in your script ff_badwords which you are using in textarea for validation.

Please try something like this for script:
function ff_badwords(element, message)
{
var badwords = /\b(casino|cocaine|viagra|sexy|porn|href=|http:|https:|://|www|google|captcha|click|link|search|site|list)\b/ig;
if (badwords.test(element.value)) {
if (message=='') message = element.name+" contains a spam word.\n";

        ff_validationFocus(element.name);
        return message;
    } // if
    return '';
} // ff_badword

Regards,
Tihana

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

Last edit: Post by tihana.krivic.

Contact Form Not Working 1 week 3 days ago #261591

  • tavellana's Avatar Topic Author
  • tavellana
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 32
  • Thanks: 0
HI Tihana,
I replaced the script below with the script you gave me here and the submit button still doesn't work.

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

Contact Form Not Working 1 week 3 days ago #261592

  • Mirec's Avatar
  • Mirec
  • Offline
  • Gold Breezer
  • Gold Breezer
  • Posts: 454
  • Karma: 2
  • Thanks: 19
Hi,

try like this
function ff_badwords_validation(element, message)
{
var badwords = /\b(casino|cocaine|viagra|sexy|porn|href=|http:|https:|:|www|google|captcha|click|link|search|site|list)\b/ig;
if (badwords.test(element.value)) {
if (message=='') message = element.name+" contains a spam word.\n";

        ff_validationFocus(element.name);
        return message;
    } // if
    return '';
} // ff_badword

I created example for you, please download->unzip->and install it (BF->Configuration->Package Installer->select this xml file->Install Package).

Let me know the result!

Regards,
Mirko
Attachments:

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

Last edit: Post by Mirec.
  • Page:
  • 1
  • 2
Moderators: ForumSupport
Time to create page: 0.037 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!